mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 12:45:47 +00:00
wip
This commit is contained in:
@@ -16,9 +16,9 @@ type Auth struct {
|
||||
Users types.Users
|
||||
}
|
||||
|
||||
func (auth *Auth) GetUser(username string) *types.User {
|
||||
func (auth *Auth) GetUser(email string) *types.User {
|
||||
for _, user := range auth.Users {
|
||||
if user.Username == username {
|
||||
if user.Email == email {
|
||||
return &user
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user