Skip to content
Advertisement

check expire time for each verification code

In the code below i check If there is a record for the user Check if ‍‍‍‍‍‍‍‍exprire_at is smaller than it is now, it will expire and create a new code, otherwise show the user a message. But in both cases a new code is created What is the problem

JavaScript

Advertisement

Answer

change

JavaScript

to

JavaScript

and

JavaScript

to

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement