silum
2017-11-03 b83d693d23b3f1d96cfbe8ea7bd8b9cd404b7b7c
refs
author silum <deneys.maartens@gmail.com>
Friday, November 3, 2017 17:30 +0100
committer GitHub <noreply@github.com>
Friday, November 3, 2017 17:30 +0100
commitb83d693d23b3f1d96cfbe8ea7bd8b9cd404b7b7c
tree e41c1fd1d9ddc490bab6d17bde4146fb4eea1d77 tree | zip | gz
parent 0042089cbba09cdf801f2139169f8c4cde182eb1 view | diff
views.py: prevent exception on unknown user login

Attempting authentication without specifying a login, or when the login is not known, causes an unhandled exception to be raised in `security.py` because `None` is passed to `check_password()` as the hashed password to check against.
1 files modified
3 ■■■■ changed files
docs/quick_tutorial/authentication/tutorial/views.py 3 ●●●● diff | view | raw | blame | history