Fix nav and layout for TwoFactorAuthsController
This commit is contained in:
parent
c891ef9337
commit
6369d23d58
|
@ -1,4 +1,4 @@
|
|||
class Profiles::TwoFactorAuthsController < ApplicationController
|
||||
class Profiles::TwoFactorAuthsController < Profiles::ApplicationController
|
||||
def new
|
||||
unless current_user.otp_secret
|
||||
current_user.otp_secret = User.generate_otp_secret
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= icon('user fw')
|
||||
%span
|
||||
Profile
|
||||
= nav_link(controller: :accounts) do
|
||||
= nav_link(controller: [:accounts, :two_factor_auths]) do
|
||||
= link_to profile_account_path, title: 'Account', data: {placement: 'right'} do
|
||||
= icon('gear fw')
|
||||
%span
|
||||
|
|
Loading…
Reference in New Issue