flask login function implemented ideas

Log flask implementation ideas:
front-end to create forms, post method, userno, pwd parameters


Back-end first create a login validation function check (validation function refers to the front to get the userno, pwd by request.get. Then the two values ​​as an argument to check validation function), how to verify the background of userno input and pwd are correct it ?

Then they would be verified through a database query, so join query in check function, and and_, verify whether the match is successful) successful then redirected to another page or this page.

Guess you like

Origin www.cnblogs.com/szj666/p/11032627.html