We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71df27a commit 9af3c2cCopy full SHA for 9af3c2c
routes/authentication.py
@@ -109,8 +109,8 @@ def login():
109
password, person["hashed_password"], person["salt"]
110
):
111
return jsonify(message="Invalid credentials"), 401
112
- except Exception as e:
113
- return jsonify(message="An error occurred", error=str(e)), 500
+ except Exception:
+ return jsonify(message="An internal error occurred"), 500
114
115
person_id = person["person_id"]
116
access_token = generate_access_token(person_id)
0 commit comments