admin: Handle team password

This commit is contained in:
nemunaire 2021-09-09 11:20:45 +02:00
commit 5eeb1a6297
11 changed files with 299 additions and 40 deletions

View file

@ -171,6 +171,10 @@ func updateTeam(team fic.Team, body []byte) (interface{}, error) {
ut.Id = team.Id
if *ut.Password == "" {
ut.Password = nil
}
if _, err := ut.Update(); err != nil {
return nil, err
}