Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resend mail bug fix #9

Merged
merged 1 commit into from Jul 4, 2016
Merged

resend mail bug fix #9

merged 1 commit into from Jul 4, 2016

Conversation

ThatSimplex
Copy link
Contributor

We can now send the mail when you are mod and you also don't need to be
unconfirmed yourself.

I have tested it and it isn't any security issues with it as far as I know.
I did test it in every possible way that could have bypassed as far as I know.

@@ -139,7 +139,7 @@ def create
end

def resend_mail
if (@user.is?(current_user) || mod) && !confirmed?
if (@user.is?(current_user) || mod?) || !confirmed?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Can leave the && and change it to !@user.confirmed??

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
@ThatSimplex
Copy link
Contributor Author

I added what you said and squashed the 2 commits together

@jomo jomo merged commit bb1d2c0 into RedstonerServer:master Jul 4, 2016
@jomo
Copy link
Contributor

jomo commented Jul 4, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants