diff --git a/Server/app/__init__.py b/Server/app/__init__.py index 927d711..29a42c5 100644 --- a/Server/app/__init__.py +++ b/Server/app/__init__.py @@ -57,7 +57,7 @@ def create_app(config_name: str) -> Flask: return flask_app -def wrong_token_handler(wrong_token: str, msg): +def wrong_token_handler(wrong_token: str, msg = None): return jsonify({ 'status': 403, 'sub_status': 42, diff --git a/Server/app/view/account/signup.py b/Server/app/view/account/signup.py index 12fcb98..c2b190d 100644 --- a/Server/app/view/account/signup.py +++ b/Server/app/view/account/signup.py @@ -17,9 +17,6 @@ def post(self): unsigned_student = UnsignedStudentModel.get_unsigned_student(uuid) - if not request.json['key'] == current_app.config["SIGNUP_KEY"]: - return Response('', 401) - StudentModel.signup(id, pw, unsigned_student.name, unsigned_student.number) PointStatusModel(id).save() StayApplyModel(id, 4).save()