Changeset 3578 for trunk/modules/auth

Show
Ignore:
Timestamp:
10/10/2008 02:19:41 PM (8 weeks ago)
Author:
Shadowhand
Message:

Making some obfuscation fixes to Auth's user model.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/auth/classes/model/auth/user.php

    r3577 r3578  
    6060                if ($array->validate()) 
    6161                { 
    62                         if ($this->find($array['username'])) 
     62                        if ($this->find($array['username']) AND Auth::instance()->login($this, $array['password'])) 
    6363                        { 
    64                                 if (Auth::instance()->login($this, $array['password'])) 
     64                                if (is_string($redirect)) 
    6565                                { 
    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                                } 
    7169 
    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; 
    7972                        } 
    8073                        else