Get(AccountPasswordDaysRemaining)

Returns the number of days remaining before the current account's password must be changed.

Format 

Get ( AccountPasswordDaysRemaining )

Parameters 

None

Data type returned 

number

Originated in version 

26.0.1

Description 

Returns:

  • The number of days before the password must be changed.

  • 0 if the password is expired.

  • -1 if the account doesn't have a password, the password has no expiration restrictions, or is not a FileMaker file account (see Editing FileMaker file accounts).

Password expiration is set by the Must be changed every <n> days privilege in the account's privilege set. See Editing other privileges.

Example 1 

Returns 5 if the user's account expires in 5 days.

Example 2 

Returns 0 if the user's password is already expired.