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
Boxiang Sun
gitlab-ce
Commits
8ee1ccf0
Commit
8ee1ccf0
authored
6 years ago
by
Luke Picciau
Committed by
Annabel Dunstone Gray
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 2fa button
parent
623ba9fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
app/assets/stylesheets/pages/profile.scss
app/assets/stylesheets/pages/profile.scss
+4
-0
app/views/profiles/two_factor_auths/_codes.html.haml
app/views/profiles/two_factor_auths/_codes.html.haml
+3
-1
changelogs/unreleased/add-2fa-button.yml
changelogs/unreleased/add-2fa-button.yml
+5
-0
No files found.
app/assets/stylesheets/pages/profile.scss
View file @
8ee1ccf0
...
...
@@ -279,6 +279,10 @@ table.u2f-registrations {
}
}
.codes
{
padding-top
:
14px
;
}
.oauth-application-show
{
.scope-name
{
font-weight
:
$gl-font-weight-bold
;
...
...
This diff is collapsed.
Click to expand it.
app/views/profiles/two_factor_auths/_codes.html.haml
View file @
8ee1ccf0
...
...
@@ -10,4 +10,6 @@
%li
%span
.monospace
=
code
=
link_to
'Proceed'
,
profile_account_path
,
class:
'btn btn-success'
.d-flex
=
link_to
'Proceed'
,
profile_account_path
,
class:
'btn btn-success append-right-10'
=
link_to
'Download codes'
,
"data:text/plain;charset=utf-8,
#{
URI
.
encode
(
@codes
.
join
(
"
\n
"
))
}
"
,
download:
"gitlab-recovery-codes.txt"
,
class:
'btn btn-default'
This diff is collapsed.
Click to expand it.
changelogs/unreleased/add-2fa-button.yml
0 → 100644
View file @
8ee1ccf0
---
title
:
Add button to download 2FA codes
merge_request
:
author
:
Luke Picciau
type
:
added
This diff is collapsed.
Click to expand it.
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