Authorization code to confirm the account users

Hello wappler, Please help me detect the error in this message, and how I can resolve it, thank you for your feedback

Can you disable the Use SSL option and change the port to 587 ?

2 Likes

Okay sir, I will try this solution

Excellent! Sir. You helped me solve this problem. thank you very much sir :partying_face: :pray:

2 Likes

Good morning/afternoon/evening Wappler Community!

I am having a similar issue but I am not at the email send part yet. I stopped to make sure that the authcode portion would go in. I checked the form prior to starting this and it worked as it should, taking me to a confirm page that is setup.
I am using this as a subscriber/user with a specific role so we can have one login page so mine is a little different. I have 3 tables (currently using 2 users & subscribers). The subscriber table is where the auth code will go, the user table has all the other stuff.
My form works in the sense that it adds the user and subscription options in the two tables but the authcode info is not being but into the database. Even though the form adds part of the info, it throws the error saying that it couldn’t be processed.

Here are a few screenshots.

Note the 500 internal server error being thrown.

My API for the registration (honeypot goodies added after I get this part done)

The code of the form page to show what is included on the page.

Hello @Richelle_Anderson

Have you seen this?

Doing that we can see where the issue is :slight_smile:

Thank you. I just thought I searched :blush:

Stay tuned.

Okay. I do not know what the heck I am looking at. If the error is at Line 130, that part of the script is working since it is adding an entry in both the users and subscribe tables.

I am also attaching the register.php file zipped up to see if maybe that shows something. It is not updating the table (subscribers) with the authCode. register.zip (1.7 KB)

Thank you for any help as I am stumped.

Check the Set value step usercode
It doesn’t have a value and it’s required

1 Like

Yes, @franse is right. You just have to set the initial usercode setValue to ‘’ (empty , 2 single quotes no space).
Otherwise it creates an initial value of "\"… (at least on PHP)

From memory (sorry not near wappler), usercode should be something like
Usercode=codearray[0]+codearray[1]+codearray[2]+codearray[3]

(Assuming 4 digit code)

1 Like

That was it.
Brian, I think that part was skipped in the video. OOPS! What you said worked though. If we ever meet I am buying you dinner. Great job on the videos.

Thank you so much for your help. Now on to the next step.

1 Like

Will check the video when i get a chance