admin: Fix panic on not provided password

This commit is contained in:
nemunaire 2022-01-20 14:42:04 +01:00
commit 92bb409764

View file

@ -171,7 +171,7 @@ func updateTeam(team *fic.Team, body []byte) (interface{}, error) {
ut.Id = team.Id
if *ut.Password == "" {
if ut.Password != nil && *ut.Password == "" {
ut.Password = nil
}