Show
Ignore:
Timestamp:
02/20/2008 04:56:18 PM (11 months ago)
Author:
Shadowhand
Message:

Removing the username from the default Auth session variables. The username should be retrieved from the user when necessary.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/auth/libraries/Auth.php

    r2024 r2089  
    201201                if ($salt == FALSE) 
    202202                { 
    203                         // Create a salt string, same length as the number of offsets in the pattern 
     203                        // Create a salt seed, same length as the number of offsets in the pattern 
    204204                        $salt = substr($this->hash(uniqid(NULL, TRUE)), 0, count($this->config['salt_pattern'])); 
    205205                } 
     
    262262        { 
    263263                $salt = ''; 
    264  
    265264                foreach($this->config['salt_pattern'] as $i => $offset) 
    266265                { 
     
    291290                ( 
    292291                        'user_id'  => $user->id, 
    293                         'username' => $user->username, 
    294292                        'roles'    => $user->roles 
    295293                ));