~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/dispatch/login.py

  • Committer: mattgiuca
  • Date: 2008-01-10 03:02:34 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:155
login: Fix exception when user or pass is not supplied in a POST request.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
            if (password is not None and
64
64
                authenticate.authenticate(username.value, password.value)):
65
65
                # Success - Set the session and redirect to avoid POSTDATA
66
 
                session['login_name'] = username.value
 
66
                session['login_name'] = username
67
67
                session.save()
68
68
                req.throw_redirect(req.uri)
69
69
            else: