admin: Fix panic on not provided password
This commit is contained in:
parent
0a15bd9756
commit
92bb409764
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ func updateTeam(team *fic.Team, body []byte) (interface{}, error) {
|
||||||
|
|
||||||
ut.Id = team.Id
|
ut.Id = team.Id
|
||||||
|
|
||||||
if *ut.Password == "" {
|
if ut.Password != nil && *ut.Password == "" {
|
||||||
ut.Password = nil
|
ut.Password = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue