Merge pull request #3197 from stevepiercy/1.9-branch
backport of #3196 to 1.9-branch
| | |
| | | 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) |
| | |
| | | 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) |