Changeset 9303 for main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
- Timestamp:
- 6 Oct 2012, 12:09:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r9261 r9303 206 206 login = self.request.form['form.login'] 207 207 if len(login) == 8 and grok.getSite()['students'].has_key(login): 208 student = grok.getSite()['students'][ 209 self.request.form['form.login']] 208 student = grok.getSite()['students'][login] 210 209 password = self.request.form['form.password'] 211 210 passwordmanager = getUtility(IPasswordManager, 'SSHA') 212 if passwordmanager.checkPassword(student.password, password): 211 if student.password is not None and \ 212 passwordmanager.checkPassword(student.password, password): 213 213 self.flash(_('Your account has been deactivated.')) 214 214 return
Note: See TracChangeset for help on using the changeset viewer.