ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Lock functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ValidatePassword (Function)
In french: ValideMotDePasse
Indicates whether the specified password is valid for the current user. The password can be:
  • the Windows authentication password
  • the password of the WINDEV/WEBDEV User Groupware.
  • the password used to lock applications (password specified with LockAppPassword).
Windows This function is only available to check if the password is valid for the User Groupware.
Example
IF ValidatePassword("MonMotDePasse") = True THEN
	Info("Utilisateur reconnu")
ELSE
	Info("Mauvais mot de passe")
END
Syntax
<Result> = ValidatePassword(<Password> [, <Authentication>])
<Result>: Boolean
  • True if the password is correct,
  • False otherwise.
<Password>: Character string or Secret string
Password to validate for the current user.
New in version 2025
Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "ANSI or Unicode string".
To learn more about secret strings and how to use the vault, see Secret string vault.
<Authentication>: Optional Integer constant
Password authentication method:
pwdCustomAuthentication performed according to the password specified in LockAppPassword.
pwdGpwAuthentication performed by the WINDEV/WEBDEV User Groupware.
pwdWindowsAuthentication performed according to the Windows password.

If <Authentication> is not specified:
  • If LockAppPassword was used, this password is checked.
  • If the User Groupware is enabled, the password is checked in relation to the User Groupware.
  • Otherwise, the password is checked against the Windows account.
Related Examples:
The Lock functions Unit examples (WINDEV): The Lock functions
[ + ] Using the LockXX functions in order to lock a sensitive application.
Component: wd300gpu.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/16/2025

Send a report | Local help