- Timestamp:
- 16 Aug 2010, 11:18:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/jambtables/authentication.py
r5444 r5446 38 38 IApplicantPrincipalInfo, IApplicantPrincipal, IApplicantSessionCredentials, 39 39 IJAMBApplicantSessionCredentials) 40 from waeup.sirp.jambtables.util import get_applicant_data 40 from waeup.sirp.jambtables.util import get_applicant_data, get_access_code 41 41 42 42 class PortalUser(grok.Role): … … 243 243 244 244 def authenticateCredentials(self, credentials): 245 #print "AUTH: ", credentials246 245 if not isinstance(credentials, dict): 247 246 return None … … 250 249 if not 'jambregno' in credentials.keys(): 251 250 credentials['jambregno'] = None 251 ac = get_access_code(credentials['accesscode']) 252 if ac is None: 253 # Invalid access code entered. 254 # XXX: log this. 255 return None 252 256 return ApplicantPrincipalInfo( 253 257 credentials['accesscode'], credentials['jambregno'] 254 # credentials['login'], credentials['password']255 258 ) 256 259
Note: See TracChangeset for help on using the changeset viewer.