Changeset 3273 for trunk/modules/auth
- Timestamp:
- 08/06/2008 08:12:28 AM (4 months ago)
- Files:
-
- 1 modified
-
trunk/modules/auth/libraries/drivers/Auth/ORM.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/auth/libraries/drivers/Auth/ORM.php
r3267 r3273 45 45 { 46 46 // Check that the user has the given role 47 $status = $_SESSION['auth_user']->has( 'role', $role);47 $status = $_SESSION['auth_user']->has(new Role_Model($role)); 48 48 } 49 49 } … … 61 61 62 62 // If the passwords match, perform a login 63 if ($user->has( ORM::factory('role','login')) AND $user->password === $password)63 if ($user->has(new Role_Model('login')) AND $user->password === $password) 64 64 { 65 65 if ($remember === TRUE) … … 109 109 $token = ORM::factory('user_token', $token); 110 110 111 if ($token-> id > 0 AND $token->user->id > 0)111 if ($token->loaded AND $token->user->loaded) 112 112 { 113 113 if ($token->user_agent === sha1(Kohana::$user_agent))
