Page 1 of 1

Missing return values in c_GetUser

Posted: Fri Dec 09, 2022 9:15 am
by StenAaboHansen
Missing name of TOTP enable and TOTP secret code variable in RETURN VALUE for c_GetUser.

Re: Missing return values in c_GetUser

Posted: Fri Dec 09, 2022 3:01 pm
by FTP
I guess you meant the document is not updated, you can print out all the user attributes via: var_dump(c_GetUser("DomainName", "UserName"))

Code: Select all

local user = c_GetUser("DomainName", "UserName")
local enable_two_factor = user.enable_two_factor
local two_factor_code = user.two_factor_code