diff --git a/Server/app/view/account/signup.py b/Server/app/view/account/signup.py index db86bbb..12fcb98 100644 --- a/Server/app/view/account/signup.py +++ b/Server/app/view/account/signup.py @@ -11,15 +11,16 @@ class Signup(AccountResource): @json_type_validate(SIGNUP_POST_JSON) @swag_from(SIGNUP_POST) def post(self): + uuid = request.json['uuid'] id = request.json['id'] pw = request.json['password'] - name = request.json['name'] - number = request.json['number'] + + unsigned_student = UnsignedStudentModel.get_unsigned_student(uuid) if not request.json['key'] == current_app.config["SIGNUP_KEY"]: return Response('', 401) - StudentModel.signup(id, pw, name, number) + StudentModel.signup(id, pw, unsigned_student.name, unsigned_student.number) PointStatusModel(id).save() StayApplyModel(id, 4).save()