mirror of
https://github.com/h44z/wg-portal.git
synced 2025-08-25 22:41:14 +00:00
convert all email addresses to lower case (#14)
This commit is contained in:
@@ -108,6 +108,7 @@ func (provider Provider) GetUserModel(ctx *authentication.AuthContext) (*authent
|
||||
}
|
||||
|
||||
func (provider Provider) InitializeAdmin(email, password string) error {
|
||||
email = strings.ToLower(email)
|
||||
if !emailRegex.MatchString(email) {
|
||||
return errors.New("admin username must be an email address")
|
||||
}
|
||||
|
Reference in New Issue
Block a user