mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
FIX: Skip validation on enforcing second factor change if the value is "no"
Without this, this site setting breaks plugin tests if local logins are disabled in the plugin.
This commit is contained in:
parent
da66950cf5
commit
e7bd288d7b
|
@ -151,6 +151,7 @@ module SiteSettings::Validations
|
|||
|
||||
def validate_enforce_second_factor(new_val)
|
||||
return if SiteSetting.enable_local_logins
|
||||
return if new_val == "no"
|
||||
validate_error :second_factor_cannot_be_enforced_with_disabled_local_login
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user