Beispiel #1
0
        bool IActivationService.ValidateActivateToken(string userName, string token)
        {
            Contract.Requires(!userName.IsNullOrEmpty());
            Contract.Requires(!token.IsNullOrEmpty());

            var origin = _encryptionService.AesDecrypt(token, _key, _iv);

            return(string.Equals(userName, origin));
        }