mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-05 21:20:51 +00:00
updates
This commit is contained in:
parent
ff5aa3cc84
commit
2799034d32
@ -172,36 +172,26 @@ class TheOperator(Operator):
|
||||
self.log('names did not match!')
|
||||
success = False
|
||||
# # check pubkey?
|
||||
elif pubkey != pubkey_record:
|
||||
self.log('pubkeys did not match!')
|
||||
pass
|
||||
# name,
|
||||
# prefix='/pubkey/'
|
||||
# )):
|
||||
# success = False
|
||||
elif uri != pubkey_record:
|
||||
self.log('pubkeys did not match!',uri,pubkey_record)
|
||||
success = False
|
||||
elif secret_login != secret_record:
|
||||
self.log('secrets did not match!')
|
||||
success = False
|
||||
else:
|
||||
success = True
|
||||
|
||||
# # check secret login
|
||||
# elif b64enc(secret_login) != b64enc(self.crypt_keys.get(
|
||||
# b64enc(pubkey),
|
||||
# prefix='/secret_login/'
|
||||
# )):
|
||||
# success = False
|
||||
|
||||
# # otherwise we succeed
|
||||
# else:
|
||||
# success = True
|
||||
|
||||
# ## return res
|
||||
# if success:
|
||||
# return {
|
||||
# 'success': True,
|
||||
# 'status':'Login succeeded.'
|
||||
# }
|
||||
# else:
|
||||
# return {
|
||||
# 'success': False,
|
||||
# 'status':'Login failed.'
|
||||
# }
|
||||
## return res
|
||||
if success:
|
||||
return {
|
||||
'success': True,
|
||||
'status':'Login succeeded.'
|
||||
}
|
||||
else:
|
||||
return {
|
||||
'success': False,
|
||||
'status':'Login failed.'
|
||||
}
|
||||
|
||||
def register_new_user(self,name,pubkey,**data):
|
||||
# self.log('setting pubkey under name')
|
||||
|
Loading…
Reference in New Issue
Block a user