Commits

Kenneth Reitz  committed 7bc6eea Merge

Merge pull request #531 from bev-a-tron/master

Fixes #519 by adding return statement

  • Participants
  • Parent commits 9be47f5, 1f82d02

Comments (0)

Files changed (1)

File docs/quickstart.rst

                 return log_the_user_in(request.form['username'])
             else:
                 error = 'Invalid username/password'
-        # this is executed if the request method was GET or the
-        # credentials were invalid
+        # the code below this is executed if the request method
+        # was GET or the credentials were invalid
+        return render_template('login.html', error=error)
 
 What happens if the key does not exist in the `form` attribute?  In that
 case a special :exc:`KeyError` is raised.  You can catch it like a