~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/views/auth.py

  • Committer: Rick Harding
  • Date: 2013-01-30 16:35:32 UTC
  • mto: This revision was merged to the branch mainline in revision 133.
  • Revision ID: rick.harding@canonical.com-20130130163532-zo47nhibs846gsb2
make it so

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
@view_config(route_name="logout")
14
14
def logout(request):
15
15
    headers = forget(request)
 
16
    request.session.delete()
16
17
    return HTTPFound(location=request.route_url('home'),
17
18
                     headers=headers)
18
19
 
57
58
    else:
58
59
        LOG.error('Unexpected mode from openid: ' + str(mode))
59
60
 
 
61
    request.session.delete()
60
62
    return HTTPFound(location=request.route_url('home'),
61
63
                     headers=headers)