admin: Return the updated team struct after password regeneration
This commit is contained in:
parent
8fd2a70894
commit
6c31820178
@ -89,14 +89,14 @@ func declareTeamsPasswordRoutes(router *gin.RouterGroup) {
|
||||
} else {
|
||||
team.Password = &passwd
|
||||
|
||||
t, err := team.Update()
|
||||
_, err := team.Update()
|
||||
if err != nil {
|
||||
log.Println("Unable to Update Team:", err.Error())
|
||||
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Something went wrong when updating the new team password"})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, t)
|
||||
c.JSON(http.StatusOK, team)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user