Changeset 2441 for trunk/modules/auth
- Timestamp:
- 04/06/2008 03:30:26 PM (8 months ago)
- Location:
- trunk/modules/auth
- Files:
-
- 3 modified
-
controllers/auth_demo.php (modified) (1 diff)
-
libraries/Auth.php (modified) (2 diffs)
-
views/auth/install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/auth/controllers/auth_demo.php
r2391 r2441 86 86 87 87 // Attempt a login 88 if ($ user->has_role('login') AND $this->auth->login($user, $form->password->value))88 if ($this->auth->login($user, $form->password->value)) 89 89 { 90 90 echo '<h4>Login Success!</h4>'; -
trunk/modules/auth/libraries/Auth.php
r2396 r2441 116 116 117 117 // If the passwords match, perform a login 118 if ($user-> password === $password)118 if ($user->has_role('login') AND $user->password === $password) 119 119 { 120 120 if ($remember === TRUE) … … 311 311 $user->logins += 1; 312 312 313 // Set the last login date 314 $user->last_login = time(); 315 313 316 // Save the user 314 317 $user->save(); -
trunk/modules/auth/views/auth/install.php
r2410 r2441 19 19 `password` char(50) NOT NULL, 20 20 `logins` int(10) unsigned NOT NULL default '0', 21 `last_login` int(10) unsigned, 21 22 PRIMARY KEY (`id`), 22 23 UNIQUE KEY `uniq_username` (`username`),
