zhaoqingang
2025-02-14 c4338024c90cd36a330d42194bb553525828fa3b
app/api/user.py
@@ -23,7 +23,7 @@
async def add_user(user: UserInfo, current_user: UserModel = Depends(get_current_user), db=Depends(get_db)):
    if not user.userName:
        return Response(code=400, msg="The userName cannot be empty!")
    if "@" in user.username:
    if "@" in user.userName:
        return Response(code=400, msg="Username cannot contain @")
    if user.pwd:
        if not is_valid_password(user.pwd):