GetDefaultAuthenticationSettings (open)
Returns a record with default authentication settings
Syntax
LOADLIB "mod::wrd/lib/auth.whlib";
RECORD FUNCTION GetDefaultAuthenticationSettings()Return value
RECORDDefault authentication settings record
RECORD ARRAY passwordsList of passwords, last one is current valid password.
STRING passwords.passwordhashPassword hash.
DATETIME passwords.validfromDate from when this password hash. Must be increasing and smaller than GetCurrentDateTime().
RECORD totpTOTP second factor settings
RECORD ARRAY totp.backupcodesList of backup codes
STRING totp.backupcodes.codeBackup code
DATETIME totp.lockedDatime when normal code entry was locked due to too many failures
STRING totp.urlTOTP configuration url, see GetTOTPUrl
DATETIME totp.usedDate when backup code was used
INTEGER versionSettings version, should be 1.