Spaces:
Running
Running
vanitha commited on
Commit ·
1bb0782
1
Parent(s): 2a9b97c
(system_user)-fix change password. convert user_id UUID to str
Browse files
app/system_users/services/service.py
CHANGED
|
@@ -631,7 +631,7 @@ class SystemUserService:
|
|
| 631 |
|
| 632 |
# Update password
|
| 633 |
await self.collection.update_one(
|
| 634 |
-
{"user_id": user_id},
|
| 635 |
{"$set": {
|
| 636 |
"password_hash": new_password_hash,
|
| 637 |
"security_settings.last_password_change": datetime.utcnow(),
|
|
|
|
| 631 |
|
| 632 |
# Update password
|
| 633 |
await self.collection.update_one(
|
| 634 |
+
{"user_id": str(user_id)},
|
| 635 |
{"$set": {
|
| 636 |
"password_hash": new_password_hash,
|
| 637 |
"security_settings.last_password_change": datetime.utcnow(),
|