2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-05 21:20:51 +00:00
This commit is contained in:
quadrismegistus 2020-09-13 12:41:13 +01:00
parent 9414e8dd33
commit eac020565d

View File

@ -119,17 +119,11 @@ class TheOperator(Operator):
return bool(pubkey)
def has_user(self,name=None,pubkey=None):
x= (
(self.crypt_keys.get(name,prefix='/pubkey/'))
or
(self.crypt_keys.get(b64enc_s(pubkey),prefix='/name/'))
)
self.log('!?!?!?',x,name,pubkey)
stop
return x
pk=self.crypt_keys.get(name,prefix='/pubkey/')
nm=self.crypt_keys.get(b64enc_s(pubkey),prefix='/name/
self.log('pks:',pubkey,pk)
self.log('nms:',name,nm)
return pk or nm
def login(self,name,pubkey,secret_login,**data):
# get my records