Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

UserPasswordExpiryDays

  • Last UpdatedJul 18, 2023
  • 1 minute read

Not available for a Windows user.

Returns the number of days left before the user's password is due to expire.

To use this function, you can build a form page by using Cicode that takes the user name and password as inputs and output the number of days that return by UserPasswordExpiryDays.

Syntax

UserPasswordExpiryDays(sUserName [, sPassword] )

sUserName:

The name of the user.

sPassword:

The password of the user.

The sPassword argument is optional. If not passed, this argument defaults to an empty string which is subsequently ignored. It is included for the purposes of handling duplicate user names and separate password identification compatibility.

Return Value

The return value contains either the number of days before password expiry, or one of two exception conditions:

  • 0 to 365 - number of days

  • -1 - no expiry

  • -2 - user not found or password wrong

UserPassword

See Also

Security Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in