Craftable PRO comes with CRUD for users where you can manage who has the access to the Craftable PRO interface. Optionally, you can manage also other types of users for example in your frontend or mobile app (and assign them a different roles like Visitor or Member). Craftable PRO additionally introduces several handy features.
You can enable self-registration by editing the Craftable PRO config and setting
true. You can also set the default role for newly registered users. This is discussed more in the section Roles & Permissions.
'self_registration' => [ // define if users can self register into craftable pro interface 'enabled' => true, // and if enabled, then which role(s) they should have assigned by default. Use role names here. // It can be a string for one role or an array for multiple roles. 'default_role' => 'Guest', ],
To require email verification before logging in, you have to set
require_email_verified in Craftable PRO config file to
true. Then every newly registered user will be obliged to confirm registration via email.
// define if email must be verified in order to be able to log in 'require_email_verified' => true,
There is a dedicated column
craftable_pro_users table serving this purpose.
You can deactivate the user by choosing "Deactivate" in the user options.
allow_only_active_users_login in Craftable PRO config is set to
true, this user will no longer be able to log in. The change will be reflected in the column
// define or only active users can log in 'allow_only_active_users_login' => true,
You can delete a user by selecting "Access" from the menu and choosing "Delete" in the user options. The change will be reflected in the column
We are using soft deletes in combination with email uniqueness. The e-mail address has to be unique, however after the user is deleted, he/she can be created (via registration, invitation or even manually) again with the same e-mail address even though he/she is currently soft deleted.