library/Garp/Model/Db/User.php
public function generateEmailValidationCode(Garp_Db_Table_Row $user, $validationToken) {
        $authVars = Garp_Auth::getInstance()->getConfigValues();

        $validationCode  = '';
        $validationCode .= $validationToken;
        $validationCode .= md5($user->email);
        $validationCode .= md5($authVars['salt']);
        $validationCode .= md5($user->id);
        $validationCode = md5($validationCode);
        return $validationCode;
    }
public function generateEmailValidationCode(Garp_Db_Table_Row $user, $validationToken) {
        $authVars = Garp_Auth::getInstance()->getConfigValues();

        $validationCode  = '';
        $validationCode .= $validationToken;
        $validationCode .= md5($user->email);
        $validationCode .= md5($authVars['salt']);
        $validationCode .= md5($user->id);
        $validationCode = md5($validationCode);
        return $validationCode;
    }
public function generateEmailValidationCode ( Garp_Db_Table_Row $ user , $ validationToken ) { $ authVars = Garp_Auth :: getInstance ( ) -> getConfigValues ( ) ; $ validationCode = '' ; $ validationCode .= $ validationToken ; $ validationCode .= md5 ( $ user -> email ) ; $ validationCode .= md5 ( $ authVars [ 'salt' ] ) ; $ validationCode .= md5 ( $ user -> id ) ; $ validationCode = md5 ( $ validationCode ) ; return $ validationCode ; }
Generate unique email validation code for a user

@param Garp_Db_Table_Row $user
@param String $validationToken Unique random value
@return String
Generate unique email validation code for a user