Example #1
0
        public Task SetPasswordHashAsync(MyUser user, string passwordHash)
        {
            if (!string.IsNullOrWhiteSpace(user.Id))
            {
                var id = int.Parse(user.Id);
                _userService.SetUserPasswordHash(id, passwordHash);
            }

            user.Password = passwordHash;
            return(Task.FromResult(0));
        }