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

« back to all changes in this revision

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

Removed debugging prints.

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)