ECA Feature Demo¶
Version v1
Purpose¶
This model demonstrates a number of smart features around user accounts:
- When a user registers themselves or gets created by an existing user, then all existing users with the admin role get informed by email. If the current user has the admin role, a message also get displayed with a link to the mailhog application to review the emails.
- When a user logs in, a number of actions applies: depending on their role, different redirect destinations will be used after login. Also, the assigment of the internal user role gets executed, see below.
- When a user gets updated, the assigment of the internal user role also gets executed.
The assignment of the internal user role assigns that role to the current user if their email domain contains @example.com and removes it otherwise. It does that only if the situation had changed and also displayes an according message on screen.
Dependencies¶
- config
- user.role.internal
- views.view.user_admin_people
- module
- eca_base
- eca_content
- eca_user
- eca_views
- user
Used plugins¶
Events¶
Conditions¶
- Role of current user
- Role of current user
- Compare number of list items
- Role of current user
- Role of current user
- Role of current user
- Compare two scalar values
- Compare two scalar values
- Role of user
- Role of user
Actions¶
- Redirect to content overview
- Redirect to admin overview
- Redirect to user profile
- Inform admins by email
- Load all admin users
- Pop an admin from the list
- Save new user as token
- Switch user
- Display link to Mailhog
- Add internal role
- Remove internal role
- Switch user
- Message
- Warning
- Save user as token
Changelog¶
v1
-
Initial version
Last update:
September 22, 2023 15:16:04