Kohana_Auth::login PHP 메소드

login() 공개 메소드

Attempt to log in a user by using an ORM object and plain-text password.
public login ( $username, $password, $remember = FALSE ) : boolean
리턴 boolean
    public function login($username, $password, $remember = FALSE)
    {
        if (empty($password)) {
            return FALSE;
        }
        if (is_string($password)) {
            // Get the salt from the stored password
            $salt = $this->find_salt($this->password($username));
            // Create a hashed password using the salt from the stored password
            $password = $this->hash_password($password, $salt);
        }
        return $this->_login($username, $password, $remember);
    }