Truncate groups to 255 chargs max
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2021-09-28 16:27:48 +02:00
parent 9807eeec1a
commit 24bd5a5e25

View File

@ -53,6 +53,9 @@ func completeAuth(w http.ResponseWriter, username string, email string, firstnam
return err
}
if len(groups) > 255 {
groups = groups[:255]
}
if usr.Groups != groups {
usr.Groups = groups
usr.Update()