Tutorial stores passwords in plaintext
http://flask.pocoo.org/docs/tutorial/views/#login-and-logout
Flask should not lead new users astray, and should instead make it as easy and obvious as possible to do the right thing.
The problem is that covering auth frameworks in a tutorial will distract the user from the goal of learning the basics of Flask.
Werkzeug has crypto stuff for passwords, we could use that at least.
Should a primer on https be covered too? Even if you store passwords encrypted, new users still won't be building secure applications without encrypting stuff over the wire.
@untitaker even if this isn't part of the basics of flask per se, it is part of the basics of using flask. Maybe that semantic wrangling is sufficient? ;)
@cpdean HTTPS is something the web server should do for you and therefore depends on your method of deployment. If we add HTTPS to the tutorial, we either end up with a lot of "ifs" in the tutorial or have to implicitly endorse one particular method. I don't think either is appropriate.
Adding information about how to use HTTPS in the "Deployment Options" section, even just by linking to the documentation that covers this in the documentation of the respective server would probably be a good idea. We could then mention in which cases people should use HTTPS in the tutorial in a more abstract manner.
I've been looking into this issue. Should Werkzeug be mentioned for its ability to hash + salt passwords to avoid storing plain text user login information?
Sorry to respond after you made the PR, but I think we could solve this problem and also take care of #532 at the same time: Mention extensions that are for password hash storage and validation.
Working on this during the pycon sprint!
Thanks, feel free to ask questions here.
@wldtyp don't forget to submit your improvements as a pull request