R
R
Roman Dershavin2021-06-29 12:00:43
PHP
Roman Dershavin, 2021-06-29 12:00:43

How to check page input using PHP?

I have such a system, on the main page there is a registration form, there is basic data, and the email confirmation goes on another php page, but there is such a bug that you can get to the email confirmation through the address bar. How can I check such a redirect to check the session for data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kulakov, 2021-06-29
@ivankprod

Look, you need to create an entry in the database on the first page that the user is registered, but as already said, with the flag emailVerified false. Then you create a session on the back they say the user has logged in. When entering / redirecting to the second page where you need to confirm the email, you check if the user has a session, if so, then display the confirmation form, if not, for example, give 403. Mustache is simple))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question