Skip to content

Commit ca9a41d

Browse files
committed
Fix password handling in create_admin function by removing unnecessary conversion to string
1 parent 1d2ad61 commit ca9a41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routers/admin/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async def create_admin(session: AsyncSession):
2424
community = DBCommunity(
2525
username=ADMIN_USER,
2626
email=ADMIN_EMAIL,
27-
password=str(hashed_password),
27+
password=hashed_password,
2828
role="admin",
2929
)
3030
await create_community(session=session, community=community)

0 commit comments

Comments
 (0)