krb5: Allow login with email address
This commit is contained in:
parent
6323d96b60
commit
499f8c924f
@ -42,6 +42,9 @@ func checkAuthKrb5(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert email to login
|
||||||
|
lf.Login = strings.TrimSuffix(lf.Login, "@epita.fr")
|
||||||
|
|
||||||
if !allowLocalAuth {
|
if !allowLocalAuth {
|
||||||
found := false
|
found := false
|
||||||
for _, u := range localAuthUsers {
|
for _, u := range localAuthUsers {
|
||||||
|
Reference in New Issue
Block a user