-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Add ability to set email confirmation state to false #2997
Conversation
e814839
to
e874010
Compare
I see that User::activate fires an event, would it make sense to have a similar event (and perhaps method on User) for deactivation? Other than that this PR looks fine. |
Implemented both. We now have |
I am not convinced of the use case for this. As mentioned over chat, I would be in favor of a general activation / deactivation mechanism where email confirmation is one factor, but until then, what's the use case for marking an email as not confirmed? |
I was reading through the changes and got confused by the fact that activation and deactivation relies on a column about email verification. To that extend I agree, for now we might keep this logic and extend or modify it later? Imo this logic almost warrants it's own database column |
I think we should add this for now, and then change the activation logic later. |
Very well, I think we can do this, but could we rename the methods to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking over this again, I would be happy to approve this if we changed the method names as described above.
af66aec
to
c9d399b
Compare
[ci skip] [skip ci]
Hello, thank you for your pull request! In order to speed up future development, keep all work in one place, and take advantage of CI tools that can help us avoid breaking changes, we have moved all Flarum code to a single monorepo at flarum/framework. You can read more about this process in our dev diary. Unfortunately, pull requests can't be carried over to the monorepo, so we have to close all open pull requests. If this pull request is still relevant, please feel free to reopen it over on the monorepo. We apologize for the inconvenience, and hope you will consider contributing to Flarum again in the future. |
Changes proposed in this pull request:
Allows admins to set email confirmation state to
false
.Reviewers should focus on:
Should we instead add a
deactivate
method toUser.php
and fire a deactivation event, similar to what we do for activation?Confirmed
composer test
).