Changeset 5690 in subversion


Ignore:
Timestamp:
Jan 3, 2012 4:56:19 AM (17 months ago)
Author:
alec
Message:
  • Move some checks into login() method
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/index.php

    r5563 r5690  
    9898  } 
    9999  else if ($auth['valid'] && !$auth['abort'] && 
    100         !empty($auth['host']) && !empty($auth['user']) && 
    101         $RCMAIL->login($auth['user'], $auth['pass'], $auth['host']) 
     100    $RCMAIL->login($auth['user'], $auth['pass'], $auth['host']) 
    102101  ) { 
    103102    // create new session ID, don't destroy the current session 
  • trunk/roundcubemail/program/include/rcmail.php

    r5662 r5690  
    751751   * @param string IMAP password 
    752752   * @param string IMAP host 
     753   * 
    753754   * @return boolean True on success, False on failure 
    754755   */ 
    755756  function login($username, $pass, $host=NULL) 
    756757  { 
    757     $user = NULL; 
     758    if (empty($username)) { 
     759      return false; 
     760    } 
     761 
    758762    $config = $this->config->all(); 
    759763 
Note: See TracChangeset for help on using the changeset viewer.