Authentication result parsing

This commit is contained in:
2023-05-29 18:32:13 -04:00
parent 0f019ebc34
commit 4a3136a766
7 changed files with 26 additions and 26 deletions

View File

@@ -217,7 +217,7 @@ export function TplFS(client, parent, desc) {
}
TplFS.fromUser = async function(client, user_ien=null) {
if(!user_ien) user_ien = (await client.userinfo()).result[0];
if(!user_ien) user_ien = (await client.authinfo()).duz;
return new TplFS(client, null, (await client.TIU_TEMPLATE_GETPROOT(user_ien))[0]);
};