Esempio n. 1
0
        public Task <string> GetPasswordHashAsync(MyUser user)
        {
            if (string.IsNullOrWhiteSpace(user.Id))
            {
                return(Task.FromResult(user.Password));
            }

            var id           = int.Parse(user.Id);
            var passwordHash = _userService.GetUserPasswordHash(id);

            return(Task.FromResult(passwordHash));
        }