Password rules and expiry
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 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
- Setting up password expiry: activating ezmbpaex, its settings and its scheduled jobs.
- Use: the Password Expiration field, lifetimes per group and user, the notification, updating children, rights and the audit log.
- Forgot Password Function: the forgotten password pages of the kernel and of the extension.
- Changes since previous versions: the release notes of the old extension, kept for history.
Read more
In this section
- Setting up password expiry How to set up the ezmbpaex password expiry extension in Exponential 6: its table, its settings, activation, the Password Expiration field and its scheduled jobs.
- Use Using password expiry with ezmbpaex in Exponential 6: the Password Expiration field, expired passwords, the warning mail, Update children, the userpaex policies and the audit logs.
- Forgot Password Function Forgotten passwords in Exponential 6: the built-in pages on the site and in the administration, and the forgotten password page of the ezmbpaex extension.
- Update Children feature The Update children feature of ezmbpaex is now described on the page Use of the password expiry chapter.
- "Password about to expire" notification The password about to expire mail of ezmbpaex is now described on the page Use of the password expiry chapter.
- Audit logs The audit logs of ezmbpaex are now described on the page Use of the password expiry chapter.
- Changes since previous versions Historical: the changes between releases 1.0, 1.1 and 1.2.0 of the ezmbpaex password expiry extension, kept for history.
Contributors
- Ricardo Correia
- Graham Brookins Updated Maintainer
Comments
Add a comment