Condition to register

Hello, I’ve finished my user log in, reset pass, but I’m having a problem with the registration page.

What I’m trying to do is to allow people to create a user in my page only if they have a unique code and a verification number that I give them, this is because my page it’s only for my costumers and each of them have a unique code.

So… I’ve tried creating a query in the server action file to lookup the values… WHERE Code = Input_Code and Verification = Input_verification.

Then using a conditional, if the verification and the code values are correct, it allows the person to create a user.

I’m trying to do this for a while know but I can’t seem to make it work.

Any help of how doing this? Thanks

Community Page
Last updated: