server/sources/native.py
branchstable
changeset 8520 fcd048fa6e6d
parent 8508 7801f2acd1dc
child 8544 3d049071957e
child 8546 3d2038d6f20d
--- a/server/sources/native.py	Wed Aug 22 17:20:06 2012 +0200
+++ b/server/sources/native.py	Fri Aug 31 16:58:08 2012 +0200
@@ -1595,9 +1595,10 @@
         pass
 
 class LoginPasswordAuthentifier(BaseAuthentifier):
-    passwd_rql = "Any P WHERE X is CWUser, X login %(login)s, X upassword P"
-    auth_rql = "Any X WHERE X is CWUser, X login %(login)s, X upassword %(pwd)s"
-    _sols = ({'X': 'CWUser', 'P': 'Password'},)
+    passwd_rql = 'Any P WHERE X is CWUser, X login %(login)s, X upassword P'
+    auth_rql = ('Any X WHERE X is CWUser, X login %(login)s, X upassword %(pwd)s, '
+                'X cw_source S, S name "system"')
+    _sols = ({'X': 'CWUser', 'P': 'Password', 'S': 'CWSource'},)
 
     def set_schema(self, schema):
         """set the instance'schema"""