diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-01-02 15:07:13 +0200 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-01-03 20:23:58 +0200 |
commit | 540a2b67098782842cfdd98b4177a29ac3c81ebf (patch) | |
tree | 781facb3c40102cbae6ae3b2806cf4056205183a /app/views/profiles/accounts/show.html.haml | |
parent | ff077cf7dc5cfd7c6c6206d801ea3f326f7af1aa (diff) | |
download | gitlab-ce-540a2b67098782842cfdd98b4177a29ac3c81ebf.tar.gz |
Move 2FA disable button
- Removed disable button from /profile/account
- Added disable button to /profile/two_factor_auth
- Changed 2FA breadcrumb from 'User Settings > Account > Account' to 'User Settings > Account > Two-Factor Authentication'
Diffstat (limited to 'app/views/profiles/accounts/show.html.haml')
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index ced58dffcdc..f1313b79589 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -17,10 +17,6 @@ Status: #{current_user.two_factor_enabled? ? 'Enabled' : 'Disabled'} - if current_user.two_factor_enabled? = link_to 'Manage two-factor authentication', profile_two_factor_auth_path, class: 'btn btn-info' - = link_to 'Disable', profile_two_factor_auth_path, - method: :delete, - data: { confirm: "Are you sure? This will invalidate your registered applications and U2F devices." }, - class: 'btn btn-danger' - else .append-bottom-10 = link_to 'Enable two-factor authentication', profile_two_factor_auth_path, class: 'btn btn-success' |