Skip to content

Commit

Permalink
회원가입 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothbear committed Mar 3, 2022
1 parent 20252f2 commit c7b0a44
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Server/app/view/account/signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c7b0a44

Please sign in to comment.