Changeset 7315 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 9 Dec 2011, 10:51:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/authentication.py
r7240 r7315 215 215 if not isinstance(credentials, dict): 216 216 return None 217 218 217 if not ('login' in credentials and 'password' in credentials): 219 218 return None … … 223 222 if not account.checkPassword(credentials['password']): 224 223 return None 225 return SIRPPrincipalInfo(id=account.name, 226 title=account.title, 227 description=account.description, 228 email=account.email, 229 phone=account.phone, 230 user_type=u'user') 224 return SIRPPrincipalInfo( 225 id=account.name, 226 title=account.title, 227 description=account.description, 228 email=account.email, 229 phone=account.phone, 230 user_type=u'user') 231 231 232 232 def principalInfo(self, id): … … 234 234 if account is None: 235 235 return None 236 return SIRPPrincipalInfo(id=account.name, 237 title=account.title, 238 description=account.description, 239 email=account.email, 240 phone=account.phone, 241 user_type=u'user') 236 return SIRPPrincipalInfo( 237 id=account.name, 238 title=account.title, 239 description=account.description, 240 email=account.email, 241 phone=account.phone, 242 user_type=u'user') 242 243 243 244 def getAccount(self, login):
Note: See TracChangeset for help on using the changeset viewer.