Changeset 247

Show
Ignore:
Timestamp:
05/23/07 11:22:58
Author:
grahack
Message:

use of the new flashMsg( ); function in library/FreakAuth_light + imporved comments + FIXME comments for #29

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FreakAuth/trunk/www/system/application/libraries/Freakauth_light.php

    r231 r247  
    455455                        $this->_set_logindata($userdata); 
    456456                         
    457                         //set FLASH MESSAGE 
    458                         $this->CI->db_session->set_flashdata('flashMessage', $this->CI->lang->line('FAL_login_message'), 1); 
    459                          
    460  
     457                        // set FLASH MESSAGE 
     458                        // (redirection is done in FAL_front if TRUE is returned) 
     459                        flashMsg( $this->CI->lang->line('FAL_login_message') ); 
    461460                        return true; 
    462461                    } 
    463462                    else 
     463                    { 
    464464                        $message = $this->CI->lang->line('FAL_banned_user_message'); 
     465                    } 
    465466                } 
    466467            } 
    467468        } 
    468469 
    469         //On error send user back to login page, and add error message 
    470         //set FLASH MESSAGE 
    471         $this->CI->db_session->set_flashdata('flashMessage', $message, 1); 
    472  
     470        // On error send user back to login page, and add error message 
     471        // set FLASH MESSAGE 
     472        flashMsg( $message ); 
     473        // FIXME : if false is returned, no redirection is done in FAL_front 
    473474        return false; 
    474475    } 
     
    550551                 
    551552        //set FLASH MESSAGE 
    552         $this->CI->db_session->set_flashdata('flashMessage', $this->CI->lang->line('FAL_invalid_register_message'), 1); 
     553        flashMsg( $this->CI->lang->line('FAL_invalid_register_message') ); 
     554        // FIXME : if false is returned, no redirection is done in FAL_front 
    553555        return false; 
    554556    } 
     
    646648            $msg = $this->CI->lang->line('FAL_forgotten_password_user_not_found_message'); 
    647649            flashMsg($msg); 
    648              
     650            // FIXME : if false is returned, no redirection is done in FAL_front 
    649651            return false; 
    650652        }