Missing return values in c_GetUser

You can share your Lua Scripts with everybody here.
Post Reply
StenAaboHansen
Posts: 40
Joined: Mon Feb 09, 2015 8:50 pm

Missing return values in c_GetUser

Post by StenAaboHansen »

Missing name of TOTP enable and TOTP secret code variable in RETURN VALUE for c_GetUser.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Missing return values in c_GetUser

Post 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
Post Reply