- Timestamp:
- 4 Apr 2013, 15:12:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py
r9334 r10055 20 20 """ 21 21 import grok 22 import time 22 23 from zope.component import getUtility 23 24 from zope.password.interfaces import IPasswordManager … … 29 30 from zope.session.interfaces import ISession 30 31 from waeup.kofa.authentication import ( 31 KofaPrincipalInfo, get_principal_role_manager )32 KofaPrincipalInfo, get_principal_role_manager, FailedLoginInfo) 32 33 from waeup.kofa.interfaces import ( 33 34 IAuthPluginUtility, IUserAccount, IPasswordValidator) … … 69 70 def description(self): 70 71 return self.title 72 73 @property 74 def failed_logins(self): 75 if not hasattr(self.context, 'failed_logins'): 76 self.context.failed_logins = FailedLoginInfo() 77 return self.context.failed_logins 71 78 72 79 def _get_roles(self):
Note: See TracChangeset for help on using the changeset viewer.