Permalink
Browse files

errors in _login were added to $errors instead of $this->errors

  • Loading branch information...
1 parent 8043dfe commit a59715cbbf194d3f76cf1a507f3ddb83b1ad5634 Matthew A. Mattson committed Jul 22, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 classes/base/auth/leap.php
@@ -21,7 +21,7 @@
*
* @package Leap
* @category Model
- * @version 2012-06-16
+ * @version 2012-07-22
*
* @abstract
*/
@@ -212,10 +212,10 @@ protected function _login($user, $password, $remember) {
if ($user->password === $password) { // Authentication Successful
if ($user->banned == 1) {
- $errors['banned'] = $user->ban_reason;
+ $this->errors['banned'] = $user->ban_reason;
}
else if (($user->activated == 0) && ! empty($this->_config['activation'])) {
- $errors['not_activated'] = '';
+ $this->errors['not_activated'] = '';
}
else {
if ($remember === TRUE) {

0 comments on commit a59715c

Please sign in to comment.