PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 user so that he can change his password.
Example
// Clic sur "Mot de passe oublié ?"
IF NOT SaaSSendSecurityCode("Marcel") THEN
Info("Récupération du mot de passe impossible. " +
"Avez vous précisé une adresse mail dans votre profil ?")
RETURN
END
 
// Validation du formulaire
IF SaaSConnect("Marcel", SAI_Code) THEN
// Code valide, changer le mot de passe pour un nouveau
SaaSChangePassword(SAI_NouveauMotDePasse)
END
Syntax
<Result> = SaaSSendSecurityCode(<Login> [, <Webservice>])
<Result>: Boolean
  • True if the security code was successfully sent.
  • False otherwise. To get the details of the error, use ErrorInfo.
<Login>: Character string
Login of user.
<Webservice>: Optional character string
Webservice to use. This parameter corresponds to:
  • the host name of the SaaS webservice (for example, "Computer", "Computer.MyNetwork.com", "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:
Component: wd270com.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment