diff options
Diffstat (limited to 'users')
-rw-r--r-- | users/app/controllers/users_controller.rb | 2 | ||||
-rw-r--r-- | users/app/views/users/_cancel_account.html.haml | 2 | ||||
-rw-r--r-- | users/config/locales/en.yml | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb index dff1ed5..38a69e3 100644 --- a/users/app/controllers/users_controller.rb +++ b/users/app/controllers/users_controller.rb @@ -43,7 +43,7 @@ class UsersController < ApplicationController def destroy @user.destroy - redirect_to admin? ? users_path : login_path + redirect_to admin? ? users_path : root_path end protected diff --git a/users/app/views/users/_cancel_account.html.haml b/users/app/views/users/_cancel_account.html.haml index 756170b..c5ab36a 100644 --- a/users/app/views/users/_cancel_account.html.haml +++ b/users/app/views/users/_cancel_account.html.haml @@ -4,6 +4,6 @@ %small You will not be able to login anymore. - else =t :admin_cancel_account, :username => @user.login -= link_to user_path(@user), :method => :delete, :class => "btn btn-danger" do += link_to user_path(@user), :method => :delete, :confirm => t(:confirm_question), :class => "btn btn-danger" do %i.icon-remove.icon-white =t :remove_account diff --git a/users/config/locales/en.yml b/users/config/locales/en.yml index dded88c..32d183b 100644 --- a/users/config/locales/en.yml +++ b/users/config/locales/en.yml @@ -16,6 +16,7 @@ en: email_aliases: "Email aliases" public_key: "Public Key" add_email_alias: "Add email alias" + confirm_question: "Are you sure?" user_updated_successfully: "Settings have been updated successfully." user_created_successfully: "Successfully created your account." email_alias_destroyed_successfully: "Successfully removed the alias '%{alias}'." |