|
|
|
|
TwoFactorAuthenticationGenerateTOTPKey (Function) In french: DoubleAuthGénèreCléTOTP Generates a TOTP Key for an application user. sTOTPKey is ANSI string sTOTPKey = TwoFactorAuthenticationGenerateTOTPKey(User.UserID + User.Email)  // Saves the TOTP key in the User data file User.sTOTPKey = sTOTPKey HSave(User)
Syntax
<Result> = TwoFactorAuthenticationGenerateTOTPKey(<Identifier>)
<Result>: Character string 16-character ANSI string corresponding to the generated TOTP key. <Identifier>: Character string User identifier. This identifier must make it possible to uniquely identify a user (e.g., concatenation of email, username and unique file key).
Related Examples:
|
Training (WINDEV): WD Two-factor Authentication
[ + ] This example shows how to use two-factor authentication to secure access to user accounts. It uses TOTP authentication, which generates a 6-digit code every 30 seconds. The code is generated by all Authenticators that use TOTP (Google, Microsoft, etc.)
|
|
Training (WEBDEV): WW_Two-factor_Authentication
[ + ] This example shows how to use two-factor authentication to secure access to user accounts. It uses TOTP authentication, which generates a 6-digit code every 30 seconds. The code is generated by all Authenticators that use TOTP (Google, Microsoft, etc.)
|
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|