2011-10-08 23:36:38 +02:00
|
|
|
%p Note: after success password update you will be redirected to login page where you should login with new password
|
|
|
|
= form_for @user, :url => profile_password_path, :method => :put do |f|
|
|
|
|
-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
|
|
|
|
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :password
|
|
|
|
%br
|
|
|
|
= f.password_field :password
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :password_confirmation
|
|
|
|
%br
|
|
|
|
= f.password_field :password_confirmation
|
|
|
|
.actions
|
|
|
|
= f.submit 'Save', :class => "lbutton vm"
|
|
|
|
|
2011-11-15 14:08:20 +01:00
|
|
|
%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"
|