summaryrefslogtreecommitdiff
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index ea56ebf..aec4c36 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -138,6 +138,12 @@ class UsersController < ApplicationController
end
end
+ def resend_mail
+ RedstonerMailer.register_mail(@user, false).deliver_now
+ flash[:notice] = "Check your inbox for the confirmation mail."
+ redirect_to users_path(@user)
+ end
+
def update
if (mod? && current_user.role >= @user.role ) || (@user.is?(current_user) && confirmed?)
if mod?
@@ -344,4 +350,4 @@ class UsersController < ApplicationController
a = [:ign, :email, :password, :password_confirmation, :mail_own_thread_reply, :mail_other_thread_reply, :mail_own_blogpost_comment, :mail_other_blogpost_comment, :mail_mention] + add
params.require(:user).permit(a)
end
-end \ No newline at end of file
+end