don't clear AuthService/AuthData if user is System Admin (#12986)

This commit is contained in:
Scott Bishel
2019-11-07 12:12:37 -07:00
committed by GitHub
parent 540cfb0239
commit e07e114def
3 changed files with 14 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ func createUser(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
user.SanitizeInput()
user.SanitizeInput(c.IsSystemAdmin())
tokenId := r.URL.Query().Get("t")
inviteId := r.URL.Query().Get("iid")