示例#1
0
        public Task <bool> HasPasswordAsync(TUser user)
        {
            var hasPassword = !string.IsNullOrEmpty(IdentityUserRepository.GetPasswordHash(user.Id));

            return(Task.FromResult <bool>(Boolean.Parse(hasPassword.ToString())));
        }
示例#2
0
        public Task <string> GetPasswordHashAsync(TUser user)
        {
            string passwordHash = IdentityUserRepository.GetPasswordHash(user.Id);

            return(Task.FromResult <string>(passwordHash));
        }