Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: reset password (#25172)

Willde768af099c9
diff --git a/api/services/account_service.py b/api/services/account_service.py
index 9a9dd04bbeb..660c80ebfce 100644
--- a/api/services/account_service.py
+++ b/api/services/account_service.py
@@ -214,6 +214,7 @@ class AccountService:
base64_password_hashed = base64.b64encode(password_hashed).decode()
account.password = base64_password_hashed
account.password_salt = base64_salt
+ db.session.add(account)
db.session.commit()
return account