PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Generates a TOTP Key for an application user.
Example
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:
WW_Two-factor_Authentication 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
Component: wd260ggl.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment