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 13:45:47 +01:00
parent 8af5b80d3d
commit bf701e6206

View File

@ -138,14 +138,14 @@ class TheOperator(Operator):
uri,
prefix='/name/'
)
pubkey_record = self.crypt_keys.get(
pubkey_record = b64enc(self.crypt_keys.get(
name,
prefix='/pubkey/'
)
secret_record = self.crypt_keys.get(
))
secret_record = b64enc(self.crypt_keys.get(
uri,
prefix='/secret_login/'
)
))
self.log(f'''Checking inputs:
@ -156,20 +156,21 @@ class TheOperator(Operator):
{uri} (input)
vs.
{pubkey_record} (record)
{uri_record} (record)
{secret_login} (input)
vs.
{pubkey_record} (record)
''')
stop
# # check name?
# if name != my_name:
# success = False
# stop
# check name?
name_b = name.encode() if type(name)==str else name
if name_b != my_name:
self.log('names did not match!')
success = False
# # check pubkey?
# elif b64dec(pubkey) != b64dec(self.crypt_keys.get(
elif uri != b64enc(pubkey_record)
# name,
# prefix='/pubkey/'
# )):