silum
2017-11-03 906ceee3583ecfa8da23f9179eeb9d2cbabcabba
refs
author silum <deneys.maartens@gmail.com>
Friday, November 3, 2017 17:30 +0100
committer Steve Piercy <web@stevepiercy.com>
Saturday, November 4, 2017 19:52 +0100
commit906ceee3583ecfa8da23f9179eeb9d2cbabcabba
tree 0b5052aea9df89902ca398bc8d66fc56d9aad8da tree | zip | gz
parent 0f1104b24b251dc698d0f3f42217246f54dea3a8 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.

(cherry picked from commit b83d693)
1 files modified
3 ■■■■ changed files
docs/quick_tutorial/authentication/tutorial/views.py 3 ●●●● diff | view | raw | blame | history