From acedc0ae3731e4c2d2bb6e7265550f59aacdfede Mon Sep 17 00:00:00 2001 From: KIM JUNG BIN Date: Thu, 3 Mar 2022 12:09:23 +0900 Subject: [PATCH] bug fix --- Server/app/__init__.py | 2 +- Server/app/view/account/signup.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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()