discourse/config
Martin Brennan 5d81c2f660
FIX: Do not enforce 2FA for users who are using social logins
Previously, we did not allow setting `enforce_second_factor` to
`all` if any social/external auth providers were enabled for the
site. This was inconsistent, as you could still set it to `staff`,
and lead to a bad experience where since the users were forced to
enable 2FA, they were no longer able to use their social login.

This commit changes things so that:

* If a user only has social/external auth, they will not have 2FA
  enforced even if it is set to all/staff
* We no longer disallow turning on `enforce_second_factor` if
  social/external auth is configured for the site
* We update the site setting description for `enforce_second_factor`
  to reflect this

This way, site admins can enforce 2FA for people who are using
only local logins, and people using social logins can use
2FA on the external site and not need double-2FA on Discourse.
2024-06-12 14:35:57 +10:00
..
environments DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
initializers DEV: Introduce hidden `s3_inventory_bucket` site setting (#27304) 2024-06-10 13:16:00 +08:00
locales FIX: Do not enforce 2FA for users who are using social logins 2024-06-12 14:35:57 +10:00
application.rb FEATURE: Add experimental option for strict-dynamic CSP (#25664) 2024-02-16 11:16:54 +00:00
boot.rb PERF: Stop running bootsnap in development mode on all environments (#25737) 2024-02-19 11:33:52 +08:00
cdn.yml.sample
database.yml DEV: Fix checkout time not properly enabled on CI (#25621) 2024-02-09 06:02:42 +08:00
deploy.rb.sample
dev_defaults.yml
discourse.config.sample
discourse.pill.sample
discourse_defaults.conf FIX: Use MaxMind supplied permalinks to download MaxMind databases (#26847) 2024-05-09 15:11:56 +08:00
environment.rb
logrotate.conf
multisite.yml.production-sample
nginx.global.conf
nginx.sample.conf
projections.json
puma.rb
routes.rb FEATURE: the ability to change the order of flags (#27269) 2024-06-05 13:27:06 +10:00
sidekiq.yml
site_settings.yml DEV: Introduce hidden `s3_inventory_bucket` site setting (#27304) 2024-06-10 13:16:00 +08:00
spring.rb
thin.yml.sample
unicorn.conf.rb DEV: Log Unicorn worker timeout backtraces to `Rails.logger` (#27257) 2024-06-03 12:51:12 +08:00
unicorn_launcher
unicorn_upstart.conf