fix: simplify forbidden user login message

This commit is contained in:
Qiu Jian
2020-06-23 17:45:32 +08:00
parent f958c6ad85
commit 91f098430c
+1 -1
View File
@@ -396,7 +396,7 @@ func isUserAllowWebconsole(ctx context.Context, w http.ResponseWriter, req *http
return false
}
if !jsonutils.QueryBoolean(usr, "allow_web_console", true) {
httperrors.ForbiddenError(w, "forbidden user %q login from web", usr.String())
httperrors.ForbiddenError(w, "user forbidden login from web")
return false
}
return true