Show
Ignore:
Timestamp:
07/04/08 00:48:44 (5 months ago)
Author:
kumatch
Message:

Changed the return object after authenticate().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/piece_framework/trunk/libs/Phwittr/Service.php

    r14842 r15133  
    1313require_once 'Phwittr/Config.php'; 
    1414require_once 'Phwittr/Service/Exception.php'; 
     15require_once 'Phwittr/Self.php'; 
    1516require_once 'Piece/Right/Validator/Email.php'; 
    1617 
     
    164165     * @param string $user 
    165166     * @param string $password 
    166      * @return boolean 
     167     * @return object 
    167168     */ 
    168169    public function authenticate($name, $password) 
     
    185186        } 
    186187 
    187         return $user; 
     188        $self = new Phwittr_Self($user->id); 
     189 
     190        return $self; 
    188191    } 
    189192