resend mail bug fix
We can now send the mail when you are mod and you also don't need to be unconfirmed yourself. a better fix this is just a better fix to my last commit
This commit was merged in pull request #9.
This commit is contained in:
@@ -139,7 +139,7 @@ class UsersController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def resend_mail
|
def resend_mail
|
||||||
if (@user.is?(current_user) || mod) && !confirmed?
|
if (@user.is?(current_user) || mod?) && !@user.confirmed?
|
||||||
RedstonerMailer.register_mail(@user, false).deliver_now
|
RedstonerMailer.register_mail(@user, false).deliver_now
|
||||||
flash[:notice] = "Check your inbox for the confirmation mail."
|
flash[:notice] = "Check your inbox for the confirmation mail."
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user