allow user to reset his private token
This commit is contained in:
parent
32ca0b8cae
commit
ed5e19a518
5 changed files with 33 additions and 1 deletions
|
@ -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?
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue