Skip to content

Commit

Permalink
fix: Correct fallback for social login key
Browse files Browse the repository at this point in the history
(cherry picked from commit f0aaead)
  • Loading branch information
ankush committed Dec 11, 2023
1 parent b433165 commit 045d059
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,5 @@ def provider_allows_signup(provider: str) -> bool:
sign_up_config = frappe.db.get_value("Social Login Key", provider, "sign_ups")

if not sign_up_config: # fallback to global settings
return is_signup_disabled()
return not is_signup_disabled()
return sign_up_config == "Allow"

0 comments on commit 045d059

Please sign in to comment.