public async Task <bool> CheckPassword(AppUserLoginDto appUserLoginDto) { var appUser = await _appUserDal.GetByFilter(I => I.UserName == appUserLoginDto.UserName); if (appUser.Password == appUserLoginDto.Password) { return(true); } return(false); }
public async Task <bool> CheckPassword(AppUserLoginDto appUserLoginDto) { var appUser = await _appUserDal.GetByFilter(x => x.Username == appUserLoginDto.Username); return(appUser.Password == appUserLoginDto.Password ? true : false); }
public async Task <AppUser> FindByUserName(string userName) { return(await _appUserDal.GetByFilter(x => x.UserName == userName)); }