Fix for token password reset

This commit is contained in:
Deon George
2013-01-12 11:20:46 +11:00
parent 788dbe5ef9
commit 47fa9993be
4 changed files with 13 additions and 6 deletions

View File

@@ -129,10 +129,9 @@ class Auth_OSB extends Auth_ORM {
public function get_user($tokenuser=TRUE) {
$user = parent::get_user();
// If we are not logged in, see if there is token for the usre
if ($tokenuser AND $user === FALSE AND $token=Session::instance()->get('token')) {
// If we are not logged in, see if there is token for the user
if ($tokenuser AND $user === NULL AND $token=Session::instance()->get('token'))
$user = $this->_get_token_user($token);
}
return $user;
}