admin: Handle team password
This commit is contained in:
parent
ed69dc6ba4
commit
5eeb1a6297
11 changed files with 299 additions and 40 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue