PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
SaaSSendSecurityCode (Function)
In French: SaaSEnvoieCodeDeSécurité
Sends the security code to the user so that he can change his password.
Example
// Click on "Forgotten password"
IF NOT SaaSSendSecurityCode("Gary")
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(<Login> [, <Webservice>])
<Result>: Boolean
  • True if the security code was successfully sent.
  • False otherwise. To find out the error details, use ErrorInfo.
<Login>: Character string (with quotes)
Login of user.
<Webservice>: Optional character string (with quotes)
Webservice to use. This parameter corresponds to:
  • the name of the host of SaaS webservice (for example, "Computer", "Computer.MyNetwork.fr" , "http://Mydomain.com").
  • the full URL of SaaS webservice (for example, "http://domain.com/WDSAAS230_WEB/WDSaaS230.awws").
By default, the connection will be established to the SaaS webservice 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 filled, the email is sent to his login (if this login corresponds to a valid email address).
  • To be able to send the security code, the SMTP parameters of SaaS administrator must have been configured:
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Linux wd230com.so
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment