Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
6369d23d
Commit
6369d23d
authored
May 06, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nav and layout for TwoFactorAuthsController
parent
c891ef93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/profiles/two_factor_auths_controller.rb
app/controllers/profiles/two_factor_auths_controller.rb
+1
-1
app/views/layouts/nav/_profile.html.haml
app/views/layouts/nav/_profile.html.haml
+1
-1
No files found.
app/controllers/profiles/two_factor_auths_controller.rb
View file @
6369d23d
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
...
...
app/views/layouts/nav/_profile.html.haml
View file @
6369d23d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment