Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Deej's avatar
Level 1

How to require email verification only on some accounts (ie admin signup requires email verification, a general user does not)

I have a site that currently only allows content admins to register and they are required to verify their email address so we have ' implements MustVerifyEmail' on the user model and this works well. However we are now allowing the general public to register as well and we don't want these users to get the email verification email, or need to verify their email at all.

How do I make the email verification only required for some user roles & not others? They register through a different form that goes to different controller actions so is there something I can put in the controller action to disable the email verification email being sent for regular users?

0 likes
5 replies
Snapey's avatar
Snapey
Best Answer
Level 122

on the registration for regular users just fill the verified_at timestamp at point of registration

5 likes
Sinnbeck's avatar

@Deej Remember to mark a best answer to set the thread as solved :)

1 like

Please or to participate in this conversation.