Merge pull request #33534 from AMR-Mannesmann/develop
fix: resolve issue in validate_user_pass_login frappe#33528
This commit is contained in:
commit
bd05f6a7b7
1 changed files with 1 additions and 2 deletions
|
|
@ -156,9 +156,8 @@ class SystemSettings(Document):
|
|||
|
||||
social_login_enabled = frappe.db.exists("Social Login Key", {"enable_social_login": 1})
|
||||
ldap_enabled = frappe.db.get_single_value("LDAP Settings", "enabled")
|
||||
login_with_email_link_enabled = frappe.db.get_single_value("System Settings", "login_with_email_link")
|
||||
|
||||
if not (social_login_enabled or ldap_enabled or login_with_email_link_enabled):
|
||||
if not (social_login_enabled or ldap_enabled or self.login_with_email_link):
|
||||
frappe.throw(
|
||||
_(
|
||||
"Please enable atleast one Social Login Key or LDAP or Login With Email Link before disabling username/password based login."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue