Permalink
Browse files

Updated password reset to use new authlogic

  • Loading branch information...
1 parent a828211 commit cb140c23ca43ec31b48fcbee6934eef4af806550 @binarylogic binarylogic committed Nov 24, 2008
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/controllers/password_resets_controller.rb
  2. +2 −2 app/views/password_resets/edit.html.erb
@@ -25,7 +25,7 @@ def edit
def update
@user.password = params[:user][:password]
- @user.confirm_password = params[:user][:confirm_password]
+ @user.password_confirmation = params[:user][:password_confirmation]
if @user.save
flash[:notice] = "Password successfully updated"
redirect_to account_url
@@ -5,8 +5,8 @@
<%= f.label :password %><br />
<%= f.password_field :password %><br />
<br />
- <%= f.label :confirm_password %><br />
- <%= f.password_field :confirm_password %><br />
+ <%= f.label :password_confirmation %><br />
+ <%= f.password_field :password_confirmation %><br />
<br />
<%= f.submit "Update my password and log me in" %>
<% end %>

0 comments on commit cb140c2

Please sign in to comment.