mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-09-30 03:31:27 +02:00
Ignore spaces in authorized emails list
This commit is contained in:
+2
-1
@@ -53,7 +53,8 @@ func (um *UserMap) LoadAuthenticatedEmailsFile() {
|
||||
}
|
||||
updated := make(map[string]bool)
|
||||
for _, r := range records {
|
||||
updated[strings.ToLower(r[0])] = true
|
||||
address := strings.ToLower(strings.TrimSpace(r[0]))
|
||||
updated[address] = true
|
||||
}
|
||||
atomic.StorePointer(&um.m, unsafe.Pointer(&updated))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user