Merge branch 'master' of https://github.com/Futseh/redstoner.com
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user