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

FR: Ability to deactivate sending of verification mail on public registration #5830

Closed
lukasNo1 opened this issue Mar 23, 2020 · 1 comment
Closed
Labels
enhancement improvements to existing features user management 😇 features related to user management
Milestone

Comments

@lukasNo1
Copy link

Regarding \craft\controllers\UsersController::actionSaveUser

As it:

A verification mail can be hold back, if a user is logged in and the sendVerificationEmail parameter is set to false in the registration request.

In case of public registration there wont be a user logged in normally, so the mail cant be hold back with this parameter.

--

Maybe you can ignore the current logged in user if sendVerificationEmail parameter is set?

I need this for a project, where guests can register in the frontend, but they should't have the ability to activate their accounts on their own. So a user in the backend can manually approve registrations.

@lukasNo1 lukasNo1 changed the title FR: Deactivate sending of verification mail on public registration FR: Ability to deactivate sending of verification mail on public registration Mar 23, 2020
brandonkelly added a commit that referenced this issue Mar 25, 2020
@brandonkelly
Copy link
Member

Preventing the activation email from being sent immediately is not a means of locking the user out of the system. They will still be able to self-activate their account if they go through a password-reset flow, for example.

If you want to lock someone out of their account, that’s what user suspension is for. So I just added a new “Suspend by default” user registration setting at Settings → Users → Settings for Craft 3.5, which you will be able to enable in order to have new user accounts be suspended automatically on self-registration. It will also prevent the activation email from being sent right away, since there would be no point in getting an activation email for an account you can’t even access yet.

@brandonkelly brandonkelly added enhancement improvements to existing features user management 😇 features related to user management labels Mar 25, 2020
@brandonkelly brandonkelly added this to the 3.5 milestone Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features user management 😇 features related to user management
Projects
None yet
Development

No branches or pull requests

2 participants