User Deactivated by Admin Should Not Be Allowed to Activate Again #1097
Replies: 2 comments
-
Try using $user->ban(); |
Beta Was this translation helpful? Give feedback.
-
The activation and deactivation logic is related to email confirmation. If you want to prevent the user from entering, you must block the user. See the link below: |
Beta Was this translation helpful? Give feedback.
-
Hello! I'd like to not allow the user to login if the admin deactivated his/her account. I use the
$user->deactivate()
code. But when I login the deactivated account, I get an email activation email. How can I differentiate the email activation for newly registered users and the one that the admin deactivated?Beta Was this translation helpful? Give feedback.
All reactions