Merge branch 'master' into glitch-soc/merge-upstream

Conflicts:
- app/controllers/application_controller.rb
- app/controllers/auth/confirmations_controller.rb
- app/controllers/auth/sessions_controller.rb
- app/controllers/settings/deletes_controller.rb
- app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb
This commit is contained in:
Thibaut Girka committed 2019-07-23 10:51:07 +02:00
commit 444796b69b
76 files changed
+662 -590

No files matched your search

@@ -5,6 +5,8 @@ module Settings
class ConfirmationsController < BaseController
before_action :ensure_otp_secret
skip_before_action :require_functional!
def new
prepare_two_factor_form
end
@@ -3,6 +3,8 @@
module Settings
module TwoFactorAuthentication
class RecoveryCodesController < BaseController
skip_before_action :require_functional!
def create
@recovery_codes = current_user.generate_otp_backup_codes!
current_user.save!