常用方法
常用方法
常用方法
常用方法
public async Task <Host> Login(Host host) { var holder = await _hostRepository.GetHostByEmail(host.Email); if (holder != null) { if (BCrypt.Net.BCrypt.Verify(host.Password, holder.Password)) { return(holder); } } return(null); }