perf(auth): make password hashing non-blocking and batch CSV user import (#25804)
Co-authored-by: Tim Baek <tim@openwebui.com>
This commit is contained in:
1 parent
18e6a10778
commit
6fdf9b4340
5 files changed
+33
-17
No files matched your search
@@ -642,7 +642,7 @@ async def update_user_by_id(
|
||||
except Exception as e:
|
||||
raise HTTPException(400, detail=str(e))
|
||||
|
||||
hashed = get_password_hash(form_data.password)
|
||||
hashed = await get_password_hash(form_data.password)
|
||||
await Auths.update_user_password_by_id(user_id, hashed, db=db)
|
||||
|
||||
# Build update dict from only the provided fields
|
||||
|
||||
Reference in new issue
Block a user