change API field

This commit is contained in:
KF7EEL
2021-04-22 15:21:13 -07:00
parent 7b2b33b2d9
commit 830799db2c
5 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -741,8 +741,8 @@ def api(api_mode=None):
# Handle authorization
if api_data['auth_type'] == 'private':
#Authenticate
if api_data['system_name'] in authorized_users:
if api_data['credentials']['user'] == authorized_users[api_data['system_name']]['user'] and api_data['credentials']['password'] == authorized_users[api_data['system_name']]['password']:
if api_data['system_shortcut'] in authorized_users:
if api_data['credentials']['user'] == authorized_users[api_data['system_shortcut']]['user'] and api_data['credentials']['password'] == authorized_users[api_data['system_shortcut']]['password']:
print(api_data['credentials']['user'])
print(api_data['credentials']['password'])
for sms in api_data['data'].items():