Changeset 3578 for trunk/modules/auth
- Timestamp:
- 10/10/2008 02:19:41 PM (8 weeks ago)
- Files:
-
- 1 modified
-
trunk/modules/auth/classes/model/auth/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/auth/classes/model/auth/user.php
r3577 r3578 60 60 if ($array->validate()) 61 61 { 62 if ($this->find($array['username']) )62 if ($this->find($array['username']) AND Auth::instance()->login($this, $array['password'])) 63 63 { 64 if ( Auth::instance()->login($this, $array['password']))64 if (is_string($redirect)) 65 65 { 66 if (is_string($redirect)) 67 { 68 // Redirect after a successful login 69 url::redirect($redirect); 70 } 66 // Redirect after a successful login 67 url::redirect($redirect); 68 } 71 69 72 // Login is successful 73 $status = TRUE; 74 } 75 else 76 { 77 $array->add_error('password', 'invalid'); 78 } 70 // Login is successful 71 $status = TRUE; 79 72 } 80 73 else
