Changeset 1677

Show
Ignore:
Timestamp:
08/20/08 19:45:43 (3 months ago)
Author:
vollmerk
Message:

sync from branch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/login.php

    r1640 r1677  
    6565                $user = User::get_from_username($username); 
    6666                 
     67                if (!$auth['succes']) {  
     68                        debug_event('Login',scrub_out($username) . ' attempted to login and failed','1');  
     69                }  
     70         
    6771                if ($user->disabled == '1') {    
    68                                 $auth['success'] = false; 
    69                                 Error::add('general',_('User Disabled please contact Admin'));  
     72                        $auth['success'] = false; 
     73                        Error::add('general',_('User Disabled please contact Admin'));  
     74                        debug_event('Login',scrub_out($username) . ' is disabled and attempted to login','1');  
    7075                } // if user disabled 
     76                         
    7177                 
    7278                elseif (!$user->username AND $auth['success']) {