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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-11 06:08:15 UTC
  • Revision ID: matt.giuca@gmail.com-20100211060815-9oue3zuuvg18w1yp
Exercises page redone to be consistent with worksheets page. Now looks much better, and contains an edit button for each exercise. Also renamed page headings for both pages to 'manage' rather than 'edit' (consistent with links to these pages).

Show diffs side-by-side

added added

removed removed

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