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

« back to all changes in this revision

Viewing changes to ivle/webapp/security/views.py

  • Committer: William Grant
  • Date: 2009-06-29 01:55:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: grantw@unimelb.edu.au-20090629015555-49xxv0piiieunx8e
Add docs on configuring Apache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
                else:
102
102
                    user = None
103
103
                    try:
104
 
                        # Username is case insensitive
105
 
                        user = authenticate.authenticate(req.config, req.store,
106
 
                                    username.value.lower(), password.value)
 
104
                        user = authenticate.authenticate(req.store,
 
105
                                    username.value, password.value)
107
106
                    except AuthError, msg:
108
107
                        badlogin = msg
109
108
                    if user is None:
128
127
                                          plugin.cookies[cookie](user), path='/'))
129
128
 
130
129
                        # Add any new enrolments.
131
 
                        ivle.pulldown_subj.enrol_user(req.config, req.store, user)
 
130
                        ivle.pulldown_subj.enrol_user(req.store, user)
132
131
                        req.store.commit()
133
132
 
134
133
                        req.throw_redirect(nexturl)