lib/generators/authentication/templates/controllers/html/passwords_controller.rb.tt in authentication-zero-2.1.0 vs lib/generators/authentication/templates/controllers/html/passwords_controller.rb.tt in authentication-zero-2.1.1
- old
+ new
@@ -4,10 +4,10 @@
def edit
end
def update
if !@<%= singular_table_name %>.authenticate(params[:current_password])
- redirect_to edit_passwords_path, alert: "The current password you entered is incorrect"
+ redirect_to edit_password_path, alert: "The current password you entered is incorrect"
elsif @<%= singular_table_name %>.update(<%= "#{singular_table_name}_params" %>)
redirect_to root_path, notice: "Your password has been changed"
else
render :edit, status: :unprocessable_entity
end