diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-12-03 22:01:18 -0600 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-12-07 16:22:37 -0600 |
commit | 116d8cfcfbe26f0bb5c6ac49a841f9555b44cf07 (patch) | |
tree | e6483b2318bb2f779813d24a652c0b350d12fd77 /app/views/profiles | |
parent | e0f84130567dc34edf1ae75fcf595e24991d2fa9 (diff) | |
download | gitlab-ce-116d8cfcfbe26f0bb5c6ac49a841f9555b44cf07.tar.gz |
Fix new personal access token showing up in a flash message40754-fix-flash-usage-with-personal-access-token
Diffstat (limited to 'app/views/profiles')
-rw-r--r-- | app/views/profiles/personal_access_tokens/index.html.haml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/profiles/personal_access_tokens/index.html.haml b/app/views/profiles/personal_access_tokens/index.html.haml index 26c2e4c5936..f445e5a2417 100644 --- a/app/views/profiles/personal_access_tokens/index.html.haml +++ b/app/views/profiles/personal_access_tokens/index.html.haml @@ -15,14 +15,13 @@ They are the only accepted password when you have Two-Factor Authentication (2FA) enabled. .col-lg-8 - - - if flash[:personal_access_token] + - if @new_personal_access_token .created-personal-access-token-container %h5.prepend-top-0 Your New Personal Access Token .form-group - = text_field_tag 'created-personal-access-token', flash[:personal_access_token], readonly: true, class: "form-control js-select-on-focus", 'aria-describedby' => "created-personal-access-token-help-block" - = clipboard_button(text: flash[:personal_access_token], title: "Copy personal access token to clipboard", placement: "left") + = text_field_tag 'created-personal-access-token', @new_personal_access_token, readonly: true, class: "form-control js-select-on-focus", 'aria-describedby' => "created-personal-access-token-help-block" + = clipboard_button(text: @new_personal_access_token, title: "Copy personal access token to clipboard", placement: "left") %span#created-personal-access-token-help-block.help-block.text-danger Make sure you save it - you won't be able to access it again. %hr |