diff --git a/app/controllers/public/account_controller.rb b/app/controllers/public/account_controller.rb index 3852ce2..ad603e1 100644 --- a/app/controllers/public/account_controller.rb +++ b/app/controllers/public/account_controller.rb @@ -135,9 +135,6 @@ class AccountController < ApplicationController rescue User::IncorrectPassword => e session[:notice] = _('The supplied current password is incorrect.') render :action => 'change_password' - rescue ActiveRecord::RecordInvalid - session[:notice] = _("Passwords don't match!") - render :action => 'change_password' end else render :action => 'change_password' diff --git a/app/views/account/change_password.rhtml b/app/views/account/change_password.rhtml index 9993cae..5578eff 100644 --- a/app/views/account/change_password.rhtml +++ b/app/views/account/change_password.rhtml @@ -1,17 +1,17 @@
-<%= password_field_tag :current_password %>
-<%= password_field_tag :new_password %>
-<%= password_field_tag :new_password_confirmation %>
+ <% button_bar do %> + <%= submit_button :ok, _('Change password') %> + <% end %> +
<% end %> - -- libgit2 0.21.2