更新注册方式
This commit is contained in:
Binary file not shown.
@@ -147,6 +147,8 @@ async def register_user(user_data: UserCreate, db: AsyncSession = Depends(get_db
|
|||||||
expires_in=3600,
|
expires_in=3600,
|
||||||
user=UserResponse.from_orm(user)
|
user=UserResponse.from_orm(user)
|
||||||
)
|
)
|
||||||
|
except HTTPException:
|
||||||
|
raise # 直接传递 HTTPException(如密码强度不够)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
BIN
frontend/flask_session/e14aa690816637ce96434acf5ba24a8e
Normal file
BIN
frontend/flask_session/e14aa690816637ce96434acf5ba24a8e
Normal file
Binary file not shown.
BIN
weibo_hotsign.db
BIN
weibo_hotsign.db
Binary file not shown.
Reference in New Issue
Block a user