• Resolved musazio

    (@musazio)


    Hello folks!

    So I am in a dev environment (localhost) and I have emails disabled. I wish to manually generate the link so that I can click it and then test the flow on my local machine.

    I know the activation link has the following format:

    https://[host]/my-account?alg_wc_ev_verify_email=[code]

    But the code that is stored in the user meta database is not the same that is displayed on the email. It may be a hash version of it or something. I want to generate the link manually so that I can click it and then trigger the whole verification flow. The reason is that I set up some actions after email verification (alg_wc_ev_user_account_activated) that I want to test.

    Any help is appreciated.

    Best regards,
    - Musa

    • This topic was modified 2 years, 9 months ago by musazio.
    • This topic was modified 2 years, 9 months ago by musazio.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Pablo Pacheco

    (@karzin)

    Hi @musazio ,

    If you enable the option “Admin > Verified column” you’ll have a new “Verified” column on the users list page. You’ll be able to unverify, verify and resend the verification email.

    Let me know if it would be enough.

    Thread Starter musazio

    (@musazio)

    Hello Pablo!

    I have emails disabled on the local system so I won’t get any emails. What I was looking for is how to manually construct the link so that I can click it myself and trigger the whole verification process.

    That said, I managed to do it. I realized that the code in the link URL is just a base64 representation of a JSON containing the user id and a autogenerated code, so I constructed that manually and it worked.

    Thanks!
    – Musa

    • This reply was modified 2 years, 9 months ago by musazio.
    Plugin Contributor Pablo Pacheco

    (@karzin)

    Yes, you’re right. I’m glad you figured that out.
    Let me know if you need more help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to manually generate the email verification link?’ is closed to new replies.