示例#1
0
        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);
        }