Esempio n. 1
0
        public bool IsValid(String account, String password)
        {
            var passwordFromDb = _userRepo.GetPasswordFromDb(account);

            var otp = _otpService.GetOtp(account);

            return(String.Equals(password, $"{passwordFromDb}{otp}"));
        }