mirror of
https://github.com/tinyauthapp/tinyauth.git
synced 2026-09-13 11:33:32 +08: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