IsDefaultAuthenticationSettings (open)
Returns whether the specified authentication settings are the default value (no passwords set, no second factor set)
Syntax
LOADLIB "mod::wrd/lib/auth.whlib";
BOOLEAN FUNCTION IsDefaultAuthenticationSettings(RECORD value)Parameters
RECORD valueAuthentication settings
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.
Return value
BOOLEANTRUE if the settings are default