Skip to content

Commit

Permalink
Save fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothbear committed Mar 3, 2022
1 parent 976204c commit fcfb1cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Server/app/model/account/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class StudentModel(db.Model, BaseMixin):

def __init__(self, id: str, pw: str, name: str, number: int, email: str):
self.id = id
self.pw = generate_password_hash(pw)
self.pw = generate_password_hash(pw, salt_length=8)
self.name = name
self.number = number
self.email = email
Expand Down
4 changes: 2 additions & 2 deletions Server/app/view/account/signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def post(self):


StudentModel.signup(id, pw, unsigned_student)
PointStatusModel(id).save()
StayApplyModel(id, 4).save()
PointStatusModel(student_id=id).save()
StayApplyModel(student_id=id, value=4).save()

return Response('', 201)

0 comments on commit fcfb1cd

Please sign in to comment.