Skip to content

Commit

Permalink
up (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaojin3616 committed Nov 22, 2023
2 parents 1e75759 + 8073854 commit c25efdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/api/v1/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def regist(*, session: Session = Depends(get_session), user: UserCreate):
raise HTTPException(status_code=500, detail='账号已存在')
else:
try:
user.password = md5_hash(user.password)
db_user.password = md5_hash(user.password)
session.add(db_user)
session.flush()
session.refresh(db_user)
Expand Down

0 comments on commit c25efdf

Please sign in to comment.