Ejemplo n.º 1
0
        public bool CheckPassword(string login, string password)
        {
            var foundPassword = this.passwordFinder.GetPassword(login);

            if (foundPassword == null)
            {
                return(false);
            }
            else
            {
                //return SecureStringHelper.UseSecureStringContent<bool>(
                //    foundPassword,
                //    p => password.ToArray().SequenceEqual(p));
                return(SecureStringHelper.UseSecureString(
                           foundPassword,
                           p => password == p));
            }
        }