library/Garp/Model/Db/User.php
public function updateUserWithActivationCode($userId, $activationCode, $activationExpiry) {
        $authVars = Garp_Auth::getInstance()->getConfigValues('forgotpassword');
        $expiresColumn = $authVars['activation_code_expiration_date_column'];
        $tokenColumn   = $authVars['activation_token_column'];

        $quotedUserId = $this->getAdapter()->quote($userId);
        return $this->update(
            array(
            $expiresColumn => $activationExpiry,
            $tokenColumn => $activationCode
            ), "id = $quotedUserId"
        );
    }
public function updateUserWithActivationCode($userId, $activationCode, $activationExpiry) {
        $authVars = Garp_Auth::getInstance()->getConfigValues('forgotpassword');
        $expiresColumn = $authVars['activation_code_expiration_date_column'];
        $tokenColumn   = $authVars['activation_token_column'];

        $quotedUserId = $this->getAdapter()->quote($userId);
        return $this->update(
            array(
            $expiresColumn => $activationExpiry,
            $tokenColumn => $activationCode
            ), "id = $quotedUserId"
        );
    }
public function updateUserWithActivationCode ( $ userId , $ activationCode , $ activationExpiry ) { $ authVars = Garp_Auth :: getInstance ( ) -> getConfigValues ( 'forgotpassword' ) ; $ expiresColumn = $ authVars [ 'activation_code_expiration_date_column' ] ; $ tokenColumn = $ authVars [ 'activation_token_column' ] ; $ quotedUserId = $ this -> getAdapter ( ) -> quote ( $ userId ) ; return $ this -> update ( array ( $ expiresColumn => $ activationExpiry , $ tokenColumn => $ activationCode ) , "id = $quotedUserId" ) ; }
Update user with activation code and expire time.
Used when forgot password

@param int $userId
@param string $activationCode
@param string $activationExpiry
@return int updated rows
Update user with activation code and expire time . Used when forgot password