diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 17:08:20 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 17:08:20 +0400 |
commit | ed5e19a518ebe62aeb2db87c55a45854df2dcb37 (patch) | |
tree | 79713a51d8974004cf56a2ecfd1f3af76d0b4d38 /app/views | |
parent | 32ca0b8cae4c4c871a0e6fb6add6749e33ec0f46 (diff) | |
download | gitlab-ce-ed5e19a518ebe62aeb2db87c55a45854df2dcb37.tar.gz |
allow user to reset his private token
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/profile.html.haml | 2 | ||||
-rw-r--r-- | app/views/profile/password.html.haml | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/app/views/layouts/profile.html.haml b/app/views/layouts/profile.html.haml index e0e532442a4..c3865608c63 100644 --- a/app/views/layouts/profile.html.haml +++ b/app/views/layouts/profile.html.haml @@ -18,7 +18,7 @@ .fixed %aside = link_to "Profile", profile_path, :class => current_page?(:controller => "profile", :action => :show) ? "current" : nil - = link_to "Password", profile_password_path, :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil + = link_to "Password & token", profile_password_path, :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil = link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do Keys - unless current_user.keys.empty? diff --git a/app/views/profile/password.html.haml b/app/views/profile/password.html.haml index 3e82143de47..41e6df5cb50 100644 --- a/app/views/profile/password.html.haml +++ b/app/views/profile/password.html.haml @@ -18,3 +18,16 @@ .actions = f.submit 'Save', :class => "lbutton vm" +%br +%br +%br + += form_for @user, :url => profile_reset_private_token_path, :method => :put do |f| + %p + Current private token: + %strong + = current_user.private_token + %em.cred + keep it in secret! + .actions + = f.submit 'Reset', :confirm => "Are you sure?", :class => "lbutton vm" |