This commit is contained in:
jomo
2016-06-21 23:05:59 +02:00
4 changed files with 12 additions and 4 deletions

View File

@@ -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
end