%p Note: after success password update you will be redirected to login page where you should login with new password
.ui-box.width-100p.append-bottom-20
%h3 Password
= form_for @user , :url => profile_password_path , :method => :put do | f |
.data
%p After successfull password update you will be redirected to login page where you should login with new password
- if @user . errors . any?
#error_explanation
%h2 = " #{ pluralize ( @user . errors . count , "error" ) } prohibited this password from being saved:"
%ul
- @user . errors . full_messages . each do | msg |
%li = msg
... ... @@ -15,26 +17,28 @@
= f . label :password_confirmation
%br
= f . password_field :password_confirmation
.acti ons
.butt ons
= f . submit 'Save' , :class => "grey-button"
.clear
%br
%br
%br
.ui-box.width-100p
%h3
Private token
%em .cred.right
keep it in secret!
= form_for @user , :url => profile_reset_private_token_path , :method => :put do | f |
%p
Current private token:
.data
%p Private token used to access application resources without authentication.
%p For example its required to access commits feed.
%hr
%p .cgray
- if current_user . private_token
%strong
= current_user . private_token
%em .cred
keep it in secret!
= text_field_tag "token" , current_user . private_token
- else
%strong don`t have
.acti ons
You don`t have one yet. Click generate to fix it.
.butt ons
- if current_user . private_token
= f . submit 'Reset' , :confirm => "Are you sure?" , :class => "grey-button"
- else
= f . submit 'Generate' , :class => "grey -button"
= f . submit 'Generate' , :class => "positive -button"