Fixed bug in password reset feature.
* Translated messages * Cleaned up some code
This commit is contained in:
parent
394b4b161f
commit
c6187ebade
3 changed files with 31 additions and 39 deletions
|
|
@ -8,7 +8,7 @@
|
|||
Du erhälst dann eine E-Mail mit weiteren Instruktionen.
|
||||
|
||||
.edit_form{:style => "width:25em"}
|
||||
- form_tag(:action => 'reset_passwort') do
|
||||
- form_tag(:action => 'reset_password') do
|
||||
%p
|
||||
E-Mail:
|
||||
%br/
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
- title "Neues Passwort"
|
||||
%p=h "Bitte neues Passwort für #{@user.nick} eingeben."
|
||||
- if flash[:error]
|
||||
%p{:style => "color: red"}= flash[:error]
|
||||
.edit_form{:style => "width:25em"}
|
||||
- form_tag(:action => 'new', :id => @user.id, :token => @user.reset_password_token) do
|
||||
- form_for @user, :url => {:action => 'update_password', :id => @user.id, :token => @user.reset_password_token} do |form|
|
||||
= form.error_messages :header_message => ""
|
||||
%p
|
||||
Neues Passwort
|
||||
%br/
|
||||
= password_field_tag "user[password]"
|
||||
= form.password_field :password
|
||||
%p
|
||||
Passwort wiederholen
|
||||
%br/
|
||||
= password_field_tag "user[password_confirmation]"
|
||||
= submit_tag 'Speichern'
|
||||
= form.password_field :password_confirmation
|
||||
= form.submit 'Speichern'
|
||||
|
|
||||
= link_to 'abbrechen', :action => 'login'
|
||||
= link_to 'Abbrechen', :action => 'login'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue