-
Notifications
You must be signed in to change notification settings - Fork 38
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
Added blacklisting feature #9
Added blacklisting feature #9
Conversation
27784d2
to
1d6fa6c
Compare
$entityManager->flush(); | ||
|
||
$communityManager = $this->getCommunityManager($blacklistUser->getWebspaceKey()); | ||
$communityManager->sendEmails(Configuration::TYPE_REGISTRATION, $blacklistUser->getUser()); |
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.
should we maybe create here an own config type (TYPE_BLACKLIST_CONFIRM
) which use the registration config as default when not set specific. or do you think it will be always the same email template?
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.
If we would send the emails by an listener on the BlacklistUser Entity it would also work when the user is denied or confirmed in an admin interface.
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.
the admin list can only link to this controller. because we cannot confirm a user from the admin-kernel
public function putAction($id, Request $request) | ||
{ | ||
$repository = $this->get('sulu_community.blacklisting.item_repository'); | ||
$entityManager = $this->get('doctrine.orm.entity_manager'); |
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.
same would move it to a service
bdc2e57
to
0728397
Compare
@alexander-schranz this should be good now |
3943e41
to
e91e9bb
Compare
@wachterjohannes could we hide the checkbox on not created entites and sometimes when you add fast some items in the list the entities are not saved and stay as input field. |
@wachterjohannes my test with |
e91e9bb
to
d56c56e
Compare
d56c56e
to
bcf74f9
Compare
75e04cc
to
65d6952
Compare
massiveart/husky#663 i have created an husky issue for you thought about the datagrid. |
Fix check if template exists to send an email
What's in this PR?
This PR adds the functionality to manage a blacklist in the sulu-admin. Each entry consists of a pattern (like *@sulu.io) and one of the following types:
block
: an email which matches the pattern cannot be used to register a user.request
: an email which matches the pattern have to be confirmed by an administrator (will get an email) before the user will get the double-opt emailWhy?
This should enhance the administrator to manage a blacklist of "spaming" email hosters and block specific email addresses to be reused after deleting a user.