mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
do not sign in after reset password if 2fa
https://github.com/devise-two-factor/devise-two-factor#disabling-automatic-login-after-password-resets thanks Greg Molnar
This commit is contained in:
1 parent
74bef133b3
commit
c639a3f733
3 files changed
+22
-1
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ Rails.application.routes.draw do
|
||||
devise_for :users,
|
||||
path: '/', only: %i[sessions passwords omniauth_callbacks],
|
||||
controllers: begin
|
||||
options = { sessions: 'sessions' }
|
||||
options = { sessions: 'sessions', passwords: 'passwords' }
|
||||
options[:omniauth_callbacks] = 'omniauth_callbacks' if Docuseal.multitenant?
|
||||
options
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user