Skip to content
Myr

Add note to not use plain text passwords to views.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Winston Kouch · committed by Markus Unterwaditzer · parent 1a877fb · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/tutorial/views.rst+6 added
92 unmodified lines
93 def logout():94 session.pop('logged_in', None)95 flash('You were logged out')96 return redirect(url_for('show_entries'))97 98Note that it is not a good idea to store passwords in plain text. You want to99protect login credentials if someone happens to have access to your database.100One way to do this is to use Security Helpers from Werkzeug to hash the101password. However, the emphasis of this tutorial is to demonstrate the basics102of Flask and plain text passwords are used for simplicity.103104Continue with :ref:`tutorial-templates`.