server/sources/native.py
branchstable
changeset 8520 fcd048fa6e6d
parent 8508 7801f2acd1dc
child 8544 3d049071957e
child 8546 3d2038d6f20d
equal deleted inserted replaced
8519:e436688f75f4 8520:fcd048fa6e6d
  1593     def set_schema(self, schema):
  1593     def set_schema(self, schema):
  1594         """set the instance'schema"""
  1594         """set the instance'schema"""
  1595         pass
  1595         pass
  1596 
  1596 
  1597 class LoginPasswordAuthentifier(BaseAuthentifier):
  1597 class LoginPasswordAuthentifier(BaseAuthentifier):
  1598     passwd_rql = "Any P WHERE X is CWUser, X login %(login)s, X upassword P"
  1598     passwd_rql = 'Any P WHERE X is CWUser, X login %(login)s, X upassword P'
  1599     auth_rql = "Any X WHERE X is CWUser, X login %(login)s, X upassword %(pwd)s"
  1599     auth_rql = ('Any X WHERE X is CWUser, X login %(login)s, X upassword %(pwd)s, '
  1600     _sols = ({'X': 'CWUser', 'P': 'Password'},)
  1600                 'X cw_source S, S name "system"')
       
  1601     _sols = ({'X': 'CWUser', 'P': 'Password', 'S': 'CWSource'},)
  1601 
  1602 
  1602     def set_schema(self, schema):
  1603     def set_schema(self, schema):
  1603         """set the instance'schema"""
  1604         """set the instance'schema"""
  1604         if 'CWUser' in schema: # probably an empty schema if not true...
  1605         if 'CWUser' in schema: # probably an empty schema if not true...
  1605             # rql syntax trees used to authenticate users
  1606             # rql syntax trees used to authenticate users