diff --git a/controllers/user.go b/controllers/user.go index 69f05d677..5421ab1c4 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -426,9 +426,8 @@ func updateUser(w http.ResponseWriter, r *http.Request) { } } - if auth.IsOauthUser(user) == nil { - err := fmt.Errorf("cannot update user info for oauth user %s", username) - logger.Log(0, err.Error()) + if auth.IsOauthUser(user) == nil && userchange.Password != "" { + err := fmt.Errorf("cannot update user's password for an oauth user %s", username) logic.ReturnErrorResponse(w, r, logic.FormatError(err, "forbidden")) return }