Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: admin password update crashes for SSO users (500 'NoneType' object has no attribute 'split') (#16914)

VincentLambert5cf95d2c0f7a
diff --git a/admin/server/services.py b/admin/server/services.py
index 754d690b50..67a4e52f36 100644
--- a/admin/server/services.py
+++ b/admin/server/services.py
@@ -117,7 +117,9 @@ class UserMgr:
# check new_password different from old.
usr = user_list[0]
psw = decrypt(new_password)
- if check_password_hash(usr.password, psw):
+ # SSO-provisioned users (OIDC/OAuth) have no local password (usr.password is None):
+ # skip the equality check, which would otherwise crash inside werkzeug's split().
+ if usr.password and check_password_hash(usr.password, psw):
return "Same password, no need to update!"
# update password
UserService.update_user_password(usr.id, psw)