We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d7fa42 + 6f690f0 commit 5aa3665Copy full SHA for 5aa3665
1 file changed
dataactbroker/routes/login_routes.py
@@ -11,7 +11,7 @@ def add_login_routes(app, is_local, bcrypt):
11
@app.route("/v1/login/", methods=["POST"])
12
def login():
13
if not is_local:
14
- return JsonResponse.error("Login route can only be used locally.", StatusCode.CLIENT_ERROR)
+ return JsonResponse.error(Exception("Login route can only be used locally."), StatusCode.CLIENT_ERROR)
15
account_manager = AccountHandler(request, bcrypt=bcrypt)
16
return account_manager.login(session)
17
0 commit comments