Cicode Programming Reference > Cicode Function Categories > Security Functions Introduction > UserPasswordExpiryDays


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().


UserPasswordExpiryDays(sUserName [, sPassword] )


The name of the user.


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:

Related Functions


See Also

Security Functions