texxasrulez / pwstrength_meter
Password strength meter for Roundcube's password screen.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:roundcube-plugin
Requires
- php: >=7.1.0
- roundcube/plugin-installer: >=0.1.4
README
A small Roundcube plugin that adds a live password strength meter to the Settings → Password screen (provided by the official password
plugin). It displays a color gradient bar and a label that updates as you type.
Features
- Zero-config: works with the standard Roundcube
password
plugin UI - Color Gradient visual meter + textual label (Very weak → Very strong)
- Sensible heuristic: length, character variety, and simple pattern penalties
- Skin‑friendly, minimal CSS
Requirements
- Roundcube 1.5+ (tested with modern builds)
- The official
password
plugin enabled
Installation
- Copy this folder to your Roundcube
plugins/
directory aspwstrength_meter
. - Enable it by adding to your Roundcube config (e.g.
config/config.inc.php
):$config['plugins'][] = 'pwstrength_meter';
- Ensure the
password
plugin is enabled and accessible under Settings → Password.
No additional configuration is needed. The meter will appear under the "new password" input on the password page.
How it works
The plugin injects a small JS/CSS bundle only on the password page. The JS locates the most likely "new password" input (by name/id heuristics) and renders a 5‑segment meter beneath it. The score ranges 0–5 and is based on length, character class variety, and a few simple penalties for repeats and sequences.
Accessibility
- The meter exposes
aria
attributes and a text label announcing the current strength.
Customization
You can tweak colors and spacing in pwstrength_meter.css
. The JS heuristic is in js/pwstrength_meter.js
if you want a different scoring model.
Localization
Add files under localization/xx_XX.inc
with a $labels
array mirroring en_US.inc
keys.