Register and Approve User via custom registration and verification email

Hi, I have followed multiple posts and corvid sample codes as well to implement this use case. I want my user to register to the website and first verify their email before they can login and approved. Now using the dynamic token I want them to be approved in the backend. I am able to register user, get verification email however the customer in the backend is not getting approved using the verification email token. This is what I did

Created register-jsw

Created Custom Registration Page and added below code

Created a dedicated verification page and added below code

Set my registration type to People I approve

Created an automation email which is sent after customer signs up and added the token link of my verification page for customer to login


This is how my URL Looks like after getting resolved.

Unfortunately, the user doesn’t get approved in the backend.

Any help will be much appreciated.

@code-queen , @tiaan