M
M
Mike2233442021-08-02 14:45:46
PHP
Mike223344, 2021-08-02 14:45:46

How to do password recovery without database in php?

Hello. I made a mail change for the registered user, sending the code to the database and to the mail, then I check if it is the same, then I change the mail.

Now you need to do a password recovery if the user is not even logged in. Accordingly, we do not have access to the database, there is no session, where can we save this confirmation code to confirm?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2021-08-02
@Mike223344

Accordingly, we do not have access to the database

In sense, access to a DB is not present? Get a separate sign, write user_id, code and date there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question