Stackoverflow的人都好串
Reddit又少人
寫個程式好簡單, 最基本的Input/Output/Loop/Variable當然唔駛問人
我不叻, 只是想學好少少, 做個project出來要有frontend backend的
用左react寫左frontend
backend用python flask. 但要連埋一齊我諗可能要secure返條REST API, 上網google "Flask Security", 找到個"Flask Login", Documentation話好多野佢舊野唔包。原來無人教你點儲username password, 係咪我求其搵個RMSDB儲住就得, 咁Authentication又是我自己做,我心諗咁果舊野到底包乜。
我唔需要Login Form, 因為我不是比真人用, 我只是用HTTPS+User Secure返我Frontend call backend拎Data, 唔想比人Hack到
==引用============================================================
It will:
Store the active user’s ID in the session, and let you log them in and out easily.
Let you restrict views to logged-in (or logged-out) users.
Handle the normally-tricky “remember me” functionality.
Help protect your users’ sessions from being stolen by cookie thieves.
Possibly integrate with Flask-Principal or other authorization extensions later on.
However, it does not:
Impose a particular database or other storage method on you. You are entirely in charge of how the user is loaded.
Restrict you to using usernames and passwords, OpenIDs, or any other method of authenticating.
Handle permissions beyond “logged in or not.”
Handle user registration or account recovery. |