Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothbear committed Mar 3, 2022
1 parent f2c19cf commit acedc0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Server/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 0 additions & 3 deletions Server/app/view/account/signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit acedc0a

Please sign in to comment.