Changeset 9303 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 6 Oct 2012, 12:09:01 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 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 -
main/waeup.kofa/trunk/src/waeup/kofa/permissions.py
r9300 r9303 228 228 229 229 class CCOfficer(grok.Role): 230 """This is basically a copy of the the PortalManager . We exclude some230 """This is basically a copy of the the PortalManager class. We exclude some 231 231 'dangerous' permissions by commenting them out. 232 232 """
Note: See TracChangeset for help on using the changeset viewer.