Merge pull request #1627 from eeff/eeff/dev

test: add ft get hardware token api
This commit is contained in:
fengzeroz
2023-10-30 15:57:38 +08:00
committed by GitHub
+5
View File
@@ -27,6 +27,11 @@ def change_password(new_password, user='admin', old_password='0000', jwt=config.
return requests.post(url=config.BASE_URL + '/api/v2/password', headers={"Authorization": jwt}, json={"name": user, "old_pass": old_password, "new_pass": new_password})
@gen_check
def get_hwtoken(jwt=config.default_jwt):
return requests.get(url=config.BASE_URL + '/api/v2/hwtoken', headers={"Authorization": jwt})
@gen_check
def get_license(jwt=config.default_jwt):
return requests.get(url=config.BASE_URL + '/api/v2/license', headers={"Authorization": jwt})