private function generateRecoveryToken(\core_kernel_classes_Resource $user)
    {
        $this->deleteToken($user);
        
        $token = md5(uniqid(mt_rand(), true));
        $tokenProperty = new \core_kernel_classes_Property(self::PROPERTY_PASSWORD_RECOVERY_TOKEN);
        $user->setPropertyValue($tokenProperty, $token);

        return $token;
    }
private function generateRecoveryToken(\core_kernel_classes_Resource $user)
    {
        $this->deleteToken($user);
        
        $token = md5(uniqid(mt_rand(), true));
        $tokenProperty = new \core_kernel_classes_Property(self::PROPERTY_PASSWORD_RECOVERY_TOKEN);
        $user->setPropertyValue($tokenProperty, $token);

        return $token;
    }
private function generateRecoveryToken ( \ core_kernel_classes_Resource $ user ) { $ this -> deleteToken ( $ user ) ; $ token = md5 ( uniqid ( mt_rand ( ) , true ) ) ; $ tokenProperty = new \ core_kernel_classes_Property ( self :: PROPERTY_PASSWORD_RECOVERY_TOKEN ) ; $ user -> setPropertyValue ( $ tokenProperty , $ token ) ; return $ token ; }
Generate password recovery token.
If user already has passwordRecoveryToken property then it will be replaced.

@author Aleh Hutnikau <hutnikau@1pt.com>
@param core_kernel_classes_Resource $user The user has requested password recovery.
@return string Password recovery token.
Generate password recovery token . If user already has passwordRecoveryToken property then it will be replaced .