0
0
Fork 0

Fix #795, fix #704, fix #835 - 2FA requires confirmation to be enabled (#1278)

* Fix #795, fix #704, fix #835 - 2FA requires confirmation to be enabled
TOTP secret is not shown again after 2FA is enabled

* Clean up
This commit is contained in:
Eugen 2017-04-08 22:20:08 +02:00 committed by GitHub
parent 470eb0042e
commit 9acdb166e8
8 changed files with 88 additions and 28 deletions

View file

@ -60,9 +60,8 @@ Rails.application.routes.draw do
end
end
resource :two_factor_auth, only: [:show] do
resource :two_factor_auth, only: [:show, :new, :create] do
member do
post :enable
post :disable
end
end