User Email Verification integration?

Created on 15 September 2023, 10 months ago
Updated 2 April 2024, 3 months ago

Problem/Motivation

Is the "User Email Verification" module compatible with ECA?
If so, how does one make ECA read if a user is verified or not?

I am using the "Registration Role" to automatically assign all new accounts the role of "Not Verified"

On the user profile page, it shows "Email verified Yes" or "Email verified No" depending if they have verified their email or not.

How can I make ECA use the condition "if current user is verified ", then apply action remove role "Not Verified".

ECA does a great job of detecting if user has role "Not Verified", then after user login, remove role. So it works great. However, it needs a condition to first detect if email has been verified or not. If user's email is verified and user has role "Not Verified", then run the model.

Is there a way to manually create a patch of custom module that can read if the value of a specific cell in the user email verification database table is 1 (verified) or 0 (not verified)? Then based on that condition run the model? Or do we have to try and convince the maintainers of that module to create an integration?

If we have to pay for this, any idea on the cost?

Any guidance on how to achieve this is greatly appreciated.

Thank you.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jsidigital
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Is the "User Email Verification" module compatible with ECA?

    ECA is compatible with Drupal core's APIs. So, it is compatible with all other modules that comply with the APIs that are available.

    What you're probably more interested in, not if the modules are compatible, but if they are integrated. From your description, it looks like the only thing you're interested in is that flag, whether an email address is verified or not. Everything else is already there.

    Now, has ECA access to that data? It depends on how the User email verification β†’ module stores that data. If this is stored by using the field API, then ECA can access that data with the field related conditions and actions. If instead, the data is stored by using key/value API, then this should be accessible too. But if that module stores the data by proprietary writing to a database table, then extra condition and/or action plugins are required to make them available to ECA.

    Such plugins can be written in custom modules, yes. Maybe that's a good starting point, and once you got it working, you could then propose them to the maintainers asking them to add them to their module. If you had any Drupal developers at hand, they should be able to write such plugins for you. There are so many existing plugins around, that it is pretty easy to see, how that needs to be done. If such developer resources were not available to you, others in the ECA community can do that for you. As for myself, I'm currently extremely busy and couldn't do it short term, but either waiting a couple of months or finding someone else, may be possible. A great chance may also be to post this in the ECA channel of Drupal Slack, there are over 200 people around that may be available to do that.

  • πŸ‡ΊπŸ‡ΈUnited States jsidigital

    I noticed User Email Verification has a rules integration but has bugs since rules is very unstable.

    This module creates a table in the database called "user_email_verification"
    In that table there is a "state" column. If cell contains "1", email is verified.
    So basically all is needed is ECA to have a condition plugin that reads the current user's UID and see if that user has a status of "1" in the user_email_verification table.

    Can you provide the link to the ECA channel of Drupal Slack? I could not find it.
    I want to see if anyone is able and willing to make this happen and if so, how much that would cost.

    Thank you.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Hey @jsidigital, the Slack link is on the ECA project page in the first info block. Or, if you're on the Drupal Slack already, just join the #eca channel.

    The intended integration would have to be provided by the user_email_verification module, not by ECA. So, you may probably also want to reach out to their maintainers. Building a condition plugin is fairly easy, with the code generator provided by Drush, this can be done in less than an hour.

  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    What's the status on this?

  • Status changed to Closed: outdated 3 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
Production build 0.69.0 2024