mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-28 12:45:47 +00:00
feat: oauth email whitelist
This commit is contained in:
@@ -74,3 +74,10 @@ func ParseFileToLine(content string) string {
|
||||
|
||||
return strings.Join(users, ",")
|
||||
}
|
||||
|
||||
func ParseWhitelist(whitelist string) []string {
|
||||
if whitelist == "" {
|
||||
return []string{}
|
||||
}
|
||||
return strings.Split(whitelist, ",")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user