Skip to content
Snippets Groups Projects
Commit 744dd50a authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

fix crutial security concern

parent 4af1a8b8
No related branches found
No related tags found
1 merge request!38Resolve "remove dead code and cleanup"
...@@ -27,6 +27,6 @@ class Login(Resource): ...@@ -27,6 +27,6 @@ class Login(Resource):
else: else:
return jsonify({'message': 'not accepted by admin', 'status': 400}) return jsonify({'message': 'not accepted by admin', 'status': 400})
else: else:
return jsonify({'message': 'login failed, wrong email or password', 'status': 200}) return jsonify({'message': 'login failed, wrong email or password', 'status': 400})
else: else:
return jsonify({"message": "data provided was incorrect", 'status': 200}) return jsonify({"message": "data provided was incorrect", 'status': 400})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment