Steve Piercy
2017-11-04 07fb83f74a4803775754f8ba982792f061e77c34
Merge pull request #3197 from stevepiercy/1.9-branch

backport of #3196 to 1.9-branch
2 files modified
6 ■■■■■ changed files
docs/quick_tutorial/authentication/tutorial/views.py 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/authorization/tutorial/views.py 3 ●●●● patch | view | raw | blame | history
docs/quick_tutorial/authentication/tutorial/views.py
@@ -43,7 +43,8 @@
        if 'form.submitted' in request.params:
            login = request.params['login']
            password = request.params['password']
            if check_password(password, USERS.get(login)):
            hashed_pw = USERS.get(login)
            if hashed_pw and check_password(password, hashed_pw):
                headers = remember(request, login)
                return HTTPFound(location=came_from,
                                 headers=headers)
docs/quick_tutorial/authorization/tutorial/views.py
@@ -45,7 +45,8 @@
        if 'form.submitted' in request.params:
            login = request.params['login']
            password = request.params['password']
            if check_password(password, USERS.get(login)):
            hashed_pw = USERS.get(login)
            if hashed_pw and check_password(password, hashed_pw):
                headers = remember(request, login)
                return HTTPFound(location=came_from,
                                 headers=headers)