Changeset 129

Show
Ignore:
Timestamp:
04/24/07 05:39:13
Author:
danfreak
Message:

"FAL: corrected small code redundancy in the new AUTH controller"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FreakAuth/trunk/www/system/application/controllers/auth.php

    r127 r129  
    4343     */ 
    4444    function index() 
    45     {    
    46         //if an user, admin or superadmin is already logged in    
    47         if($this->freakauth_light->isValidUser()) 
    48         { 
    49          // Display user name and an 'already logged in' flash message... 
    50         $msg = $this->freakauth_light->getUserName().', '.$this->lang->line('FAL_already_logged_in_msg'); 
    51         flashMsg($msg); 
    52  
    53         //redirects to homepage     
    54         redirect ('', 'location');        
    55  
    56         } 
    57         else 
    58         {         
    59             //page title 
    60             //$data['heading'] = $this->lang->line('FAL_login_label'); 
    61                  
    62                 $data['fal'] = $this->fal_front->login(); 
    63                  
    64                 $this->load->view($this->_container, $data); 
    65  
    66         }        
     45    {            
     46        $data['fal'] = $this->fal_front->login(); 
     47        $this->load->view($this->_container, $data);      
    6748    } 
    6849