I am looking to create a page where users are required to provide the access code we send to their email. I am having issues creating a scenario where users with a correct access code are permitted to sign up or users with an incorrect code are sent to a different page informing them the code is incorrect.
Ideally, I would have pre-determined codes in a database and the text field input would recognize this. I have tried this idea as well as having the user’s submitted code create a new code in the database and only recognizing the code if it contains certain characters. The issue with this is that the submit button only brings them to the incorrect code page and not the page allowing them to access the app.
Has anyone found a solution to conditional reasoning?