Commit 6369d23d authored by Robert Speicher's avatar Robert Speicher

Fix nav and layout for TwoFactorAuthsController

parent c891ef93
No related merge requests found
class Profiles::TwoFactorAuthsController < ApplicationController class Profiles::TwoFactorAuthsController < Profiles::ApplicationController
def new def new
unless current_user.otp_secret unless current_user.otp_secret
current_user.otp_secret = User.generate_otp_secret current_user.otp_secret = User.generate_otp_secret
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
= icon('user fw') = icon('user fw')
%span %span
Profile 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 = link_to profile_account_path, title: 'Account', data: {placement: 'right'} do
= icon('gear fw') = icon('gear fw')
%span %span
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment