This commit is contained in:
cjw
2026-03-15 13:33:47 +08:00
parent 5a665242a3
commit 191ac77d15
7 changed files with 31 additions and 26 deletions
+1 -3
View File
@@ -116,8 +116,7 @@ async def create_user(
username: str,
email: str,
password: str,
full_name: Optional[str] = None,
is_superuser: bool = False
full_name: Optional[str] = None
) -> User:
hashed_password = get_password_hash(password)
user = User(
@@ -125,7 +124,6 @@ async def create_user(
email=email,
hashed_password=hashed_password,
full_name=full_name,
is_superuser=is_superuser,
is_active=True
)
db_session.add(user)