Show
Ignore:
Timestamp:
03/31/2008 03:06:27 PM (8 months ago)
Author:
Shadowhand
Message:

Removed the $user->has_role('login') check from Auth::login(). This check needs to be done by the developer, rather than by Auth.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/auth/controllers/auth_demo.php

    r2388 r2391  
    8686 
    8787                                // Attempt a login 
    88                                 if ($this->auth->login($user, $form->password->value)) 
     88                                if ($user->has_role('login') AND $this->auth->login($user, $form->password->value)) 
    8989                                { 
    9090                                        echo '<h4>Login Success!</h4>';