From 601c5b3cb8b65506b3ecb0101d6994efab843809 Mon Sep 17 00:00:00 2001 From: "carmelo.magnafico" <carmelo.magnafico@inaf.it> Date: Mon, 7 Oct 2024 18:04:35 +0200 Subject: [PATCH] update readme file --- README.md | 14 ++++++++++++++ matlab/test/credentials.json | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 matlab/test/credentials.json diff --git a/README.md b/README.md index c0af268..c64ce9d 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,20 @@ inputs: Outputs: none +You can also use a credential file as shown in /test: +``` +credentials = jsondecode(fileread('credentials.json')); +opts = struct("username", credentials.username, "password", credentials.password ,"maxDuration", false); +``` +where the json file is so created: +``` +{ + "username":"ygagarin", + "password":":YG_password" +} +``` + + When the user will succesfully login via the login class method `MatMust_login()` a auth.json file with the authorization tocken will be wrote on your workingdirectory root. ### MatMust_logincheck diff --git a/matlab/test/credentials.json b/matlab/test/credentials.json deleted file mode 100644 index a9dea5f..0000000 --- a/matlab/test/credentials.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "username":"ygagarin", - "password":":YG_password" -} \ No newline at end of file -- GitLab