From fcfb1cde09d00d5c88b411d08bddb04fd4187928 Mon Sep 17 00:00:00 2001 From: KIM JUNG BIN Date: Thu, 3 Mar 2022 16:28:41 +0900 Subject: [PATCH] Save fix --- Server/app/model/account/student.py | 2 +- Server/app/view/account/signup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/app/model/account/student.py b/Server/app/model/account/student.py index d5738f2..6ec6e54 100644 --- a/Server/app/model/account/student.py +++ b/Server/app/model/account/student.py @@ -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 diff --git a/Server/app/view/account/signup.py b/Server/app/view/account/signup.py index d42d46d..09a9934 100644 --- a/Server/app/view/account/signup.py +++ b/Server/app/view/account/signup.py @@ -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)