Skip to content
Snippets Groups Projects
Commit f09e1599 authored by Valery Sizov's avatar Valery Sizov
Browse files

fix show token in profile

parent 10df55e1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -25,9 +25,16 @@
= 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!
- if current_user.private_token
%strong
= current_user.private_token
%em.cred
keep it in secret!
- else
%strong don`t have
.actions
= f.submit 'Reset', :confirm => "Are you sure?", :class => "grey-button"
- if current_user.private_token
= f.submit 'Reset', :confirm => "Are you sure?", :class => "grey-button"
- else
= f.submit 'Generate', :class => "grey-button"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment