public bool Login(string login, string password)
        {
            // validate password
            var hashToCheck = CommonHelperAppService.HashPassword(password);

            return(CommonHelperAppService.ValidatePassword(password, hashToCheck));
        }
Example #2
0
        public bool VerifyPassword(string enteredPassword, string retrievedPassword)
        {
            var isValid = CommonHelperAppService.ValidatePassword(enteredPassword, retrievedPassword);

            if (!isValid)
            {
                return(false);
            }

            return(true);
        }