ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SaaS functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SaaSSendSecurityCode (Function)
In french: SaaSEnvoieCodeDeSécurité
Sends the security code to the users so that they can change their passwords.
New in version 2024
WINDEVWindows This function is now available for WINDEV applications in Windows.
Example
// Click on "Forgotten password"
IF NOT SaaSSendSecurityCode("Gary") THEN
Info("Unable to retrieve the password. " + 
"Did you specify an email address in your profile?")
RETURN
END

// Validate the form
IF SaaSConnect("Gary", EDT_Code) THEN
// The code is valid, replace the password by a new one 
SaaSChangePassword(EDT_NewPassword)
END
Syntax
<Result> = SaaSSendSecurityCode(<Username> [, <Web service>])
<Result>: Boolean
  • True if the security code was successfully sent.
  • False otherwise. To get more details on the error, use ErrorInfo.
<Username>: Character string
Username.
<Web service>: Optional character string
Web service to use. This parameter corresponds to:
  • the host name of the SaaS web service (for example, "Computer", "Computer.MyNetwork.com", "http://Mydomain.com").
  • the full URL of the SaaS web service (for example, "http://domain.com/WDSAAS290_WEB/WDSaaS290.awws").
By default, the connection will be established to the SaaS web service installed with the WEBDEV Application Server on the local computer.
Remarks
  • The security code is valid as long as the session that requested the change of password is enabled.
  • The security code is sent to the email address specified in the saasUser variable corresponding to the user (Email). If this property is not specified, the email is sent to the email address used as the username (if it is valid).
  • To be able to send the security code, the SMTP parameters of SaaS administrator must have been configured:
Component: wd290com.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/13/2023

Send a report | Local help