Fix nav and layout for TwoFactorAuthsController

This commit is contained in:
Robert Speicher 2015-05-06 13:35:55 -04:00
parent c891ef9337
commit 6369d23d58
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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