kernel/classes/datatypes/ezuser/ezuser.php
protected static function loginSucceeded( $user )
    {
        $userID = $user->attribute( 'contentobject_id' );

        // if audit is enabled logins should be logged
        eZAudit::writeAudit( 'user-login', array( 'User id' => $userID, 'User login' => $user->attribute( 'login' ) ) );

        eZUser::updateLastVisit( $userID, true );
        eZUser::setCurrentlyLoggedInUser( $user, $userID );

        // Reset number of failed login attempts
        eZUser::setFailedLoginAttempts( $userID, 0 );
    }
protected static function loginSucceeded( $user )
    {
        $userID = $user->attribute( 'contentobject_id' );

        // if audit is enabled logins should be logged
        eZAudit::writeAudit( 'user-login', array( 'User id' => $userID, 'User login' => $user->attribute( 'login' ) ) );

        eZUser::updateLastVisit( $userID, true );
        eZUser::setCurrentlyLoggedInUser( $user, $userID );

        // Reset number of failed login attempts
        eZUser::setFailedLoginAttempts( $userID, 0 );
    }
protected static function loginSucceeded ( $ user ) { $ userID = $ user -> attribute ( 'contentobject_id' ) ; // if audit is enabled logins should be logged eZAudit :: writeAudit ( 'user-login' , array ( 'User id' => $ userID , 'User login' => $ user -> attribute ( 'login' ) ) ) ; eZUser :: updateLastVisit ( $ userID , true ) ; eZUser :: setCurrentlyLoggedInUser ( $ user , $ userID ) ; // Reset number of failed login attempts eZUser :: setFailedLoginAttempts ( $ userID , 0 ) ; }
Does some house keeping work once a log in has succeeded.

@param eZUser $user
Does some house keeping work once a log in has succeeded .