diff --git a/backend/apps/web/models/auths.py b/backend/apps/web/models/auths.py index 5b262d631..790856c7b 100644 --- a/backend/apps/web/models/auths.py +++ b/backend/apps/web/models/auths.py @@ -91,7 +91,12 @@ class AuthsTable: self.db.create_tables([Auth]) def insert_new_auth( - self, email: str, password: str, name: str, profile_image_url: str, role: str = "pending" + self, + email: str, + password: str, + name: str, + profile_image_url: str, + role: str = "pending", ) -> Optional[UserModel]: log.info("insert_new_auth") diff --git a/backend/apps/web/models/users.py b/backend/apps/web/models/users.py index 62613581d..fd5d35c2e 100644 --- a/backend/apps/web/models/users.py +++ b/backend/apps/web/models/users.py @@ -57,7 +57,12 @@ class UsersTable: self.db.create_tables([User]) def insert_new_user( - self, id: str, name: str, email: str, profile_image_url: str, role: str = "pending", + self, + id: str, + name: str, + email: str, + profile_image_url: str, + role: str = "pending", ) -> Optional[UserModel]: user = UserModel( **{ diff --git a/backend/apps/web/routers/auths.py b/backend/apps/web/routers/auths.py index a1931b009..1554cb49b 100644 --- a/backend/apps/web/routers/auths.py +++ b/backend/apps/web/routers/auths.py @@ -146,7 +146,11 @@ async def signup(request: Request, form_data: SignupForm): ) hashed = get_password_hash(form_data.password) user = Auths.insert_new_auth( - form_data.email.lower(), hashed, form_data.name, form_data.profile_image_url, role + form_data.email.lower(), + hashed, + form_data.name, + form_data.profile_image_url, + role, ) if user: