diff --git a/README.md b/README.md index c0af268a01df088f43a9b90631aaced93ac90ec7..c64ce9d7861395b31c0357b0692dde4fdb5e701b 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 a9dea5fa7a30591341bea1697cec968bbab4bc34..0000000000000000000000000000000000000000 --- a/matlab/test/credentials.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "username":"ygagarin", - "password":":YG_password" -} \ No newline at end of file