krb5: Allow login with email address

This commit is contained in:
nemunaire 2022-09-10 00:27:08 +02:00
parent 6323d96b60
commit 499f8c924f
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ func checkAuthKrb5(c *gin.Context) {
return
}
// Convert email to login
lf.Login = strings.TrimSuffix(lf.Login, "@epita.fr")
if !allowLocalAuth {
found := false
for _, u := range localAuthUsers {