registration and authorization
This commit is contained in:
parent
2b5f468b84
commit
4423dc360f
12 changed files with 136 additions and 6 deletions
|
|
@ -41,4 +41,9 @@ public class UserRepository : IUserRepository
|
|||
_context.Users.Remove(entity);
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
|
||||
public async Task<User?> GetUserByEmail(string email)
|
||||
{
|
||||
return await _context.Users.FirstOrDefaultAsync(u => u.Email == email);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue