亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

php - The project needs to send verification codes and text messages for some verification. How to perform verification?
天蓬老師
天蓬老師 2017-05-16 12:58:07
0
3
669

Project with front-end and back-end separation
Now in the project, verification codes and text messages need to be sent for some verification
The problem is that there are several pages now that have these verifications. For example, you can send text messages to log in, and you also need to send them to register. SMS;
Registration requires a verification code, and other pages may also send verification codes;
The problem is that if the user logs in on two PCs at the same time, Then I applied for text messages on both PC-A and PC-B. At this time, after the user enters the text message, how should I judge which text message should be verified with which text message on the backend?
The same is true for the verification code. How to judge whether the user has sent the text message? Which verification code should the incoming verification code be verified with from the backend?

天蓬老師
天蓬老師

歡迎選擇我的課程,讓我們一起見證您的進步~~

reply all(3)
過去多啦不再A夢

The same account should limit the verification code to only be sent once within the expiration period. Ask your backend to change the logic

PHPzhong

Save verification code through session or cookie

Every device is different

大家講道理

1. The last verification code is valid, and subsequent ones will overwrite the original one.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template