feat: oauth email whitelist

This commit is contained in:
Stavros
2025-01-24 20:17:08 +02:00
parent b87cb54d91
commit c5a8639822
8 changed files with 121 additions and 9 deletions

View File

@@ -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, ",")
}