mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 09:55:29 +08:00
get user public key from shared storage
This commit is contained in:
@@ -568,10 +568,15 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
|
||||
Return the session token on success
|
||||
Return None on error
|
||||
"""
|
||||
user = user_db.user_load( user_id, self.server.master_data_pubkey, config_path=self.server.config_path )
|
||||
user = data.get_user( user_id, self.server.master_data_pubkey, config_path=self.server.config_path )
|
||||
if 'error' in user:
|
||||
log.error("Failed to load user {}".format(user_id))
|
||||
return None
|
||||
|
||||
# we have to own it locally
|
||||
if not user['owned']:
|
||||
log.error("This wallet does not own user {}".format(user_id))
|
||||
return None
|
||||
|
||||
user_info = user['user']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user