Skip to the content
Documentation

Password rules and expiry

No ratings yet

This chapter is about the rules a site sets for passwords: how long and how varied a password must be, when a user must replace it, and how long a password stays valid. Exponential 6 has most of it built in; passwords that expire after a number of days come with the extension ezmbpaex (Password Expiry), which a site activates when it needs it, typically an intranet or an extranet.

Built in: the password rules

Every form that sets a password checks the same rules: registration, editing a user account, and Change password. The page lists the rules beside the new password and ticks them off as you type.

The Change password page with a too short new password and the requirements not met

The site's password rules are listed beside the new password and checked as you type; a password that misses one is refused.

  • A minimum length, 10 characters on a new installation (site.ini [UserSettings] MinPasswordLength).
  • No well-known or common password, nor a simple variant of one; on by default since 6.0.15 (WeakPasswordCheck).
  • Optional rules in site.ini [PasswordSettings], all off by default: a lowercase letter, an uppercase letter, a digit, a symbol, a mix of several kinds, not the login name, not the current password.

After a change the user stays signed in, the other sessions of the account are signed out, and an e-mail Your password was changed goes to the account's address. Every change and every refused change is recorded in the audit trail, never the password itself.

Built in: change at next sign-in

An administrator who creates an account for someone else, or edits an existing one, can tick Change password at next sign-in below the account fields. It is ticked by default for a new account. After the next sign-in, the user is sent to Change password and every other page leads back there until the password is changed; the user can still sign out. The checkbox is not shown on your own account, nor on the public registration form.

With ezmbpaex: passwords that expire

The extension adds what the kernel does not have:

  • A lifetime for passwords, in days, set for the whole site and changeable per user group and per user. An expired password must be replaced at the next sign-in.
  • A notification by e-mail before the password expires.
  • A regular expression a new password must match, per group or user.
  • Its own forgotten password page with links that expire.

It is part of Exponential 6 (version 6.0.12 of the extension at the time of writing), but not active on a new installation.

The chapters

Read more

In this section

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.