Security Policy: Password Expiry, History, Complexity, Session Timeout & Login Lockout
by Viyug Infotech https://viyuginfotech.com
Password and session security in one free app
Passwords that expire with a warning first, cannot be reused and follow your rules. Accounts that lock after repeated wrong passwords. Sessions that end when nobody is at the screen. All set on one Settings page, per company, with a log of every event.
Password expiryNo reuseComplexity rulesLogin lockoutIdle timeoutLog out allSecurity log
How it works, step by step
Every screen below is the app itself with demo data.
Set the policy in Settings
Settings > General Settings > Security Policy. Expiry, warning days, character rules, history, lockout and idle timeout, per company. The standard minimum length sits in the same block.

Give some groups their own timeout
Open "Timeout per group": for example 30 minutes for administrators and 8 hours for the shop floor. The shortest timeout of a user's groups wins. Exempt single users or office IP ranges.

Users are warned before expiry
A few days before the password expires a banner appears after sign-in with a "Change password" button.

Expired passwords are changed at sign-in
An expired password, or one the administrator flagged, leads to a change page that lists the rules. Weak or reused passwords are refused with a clear reason. Works with two-factor sign-in.

Password guessing is stopped
After N wrong passwords the account is locked for M minutes. Even the right password is refused until then. API keys of integrations keep working.

Unlock with one click
Locked users show a red ribbon and an Unlock button. "Require Password Change" works on one user or on a selection in the list.

See each user at a glance
The Password & Session tab shows when the password was changed, when it expires, failed sign-ins, the lock time and the idle exemption.

Review the security log
Password changes, forced changes, lockouts, unlocks, idle logouts and "log out all" with user, who did it and IP address. Filter and group as you like.

Everything in the box
Password rules, sign-in protection and session control without extra apps.
Password expiry
Expiry in days per company, warning banner before it, forced change at the next sign-in. 0 switches it off.
Password history
Refuses the last N passwords of the user, compared against secure hashes, never plain text.
Complexity rules
Upper case, lower case, digit, special character and "must not contain the login", on top of the standard minimum length.
Every way a password is set
Preferences, the administrator wizard, reset password links, invitations and sign-up. A refused reset link can be used again.
Login lockout
N wrong passwords lock the account for M minutes, also over the external API. One-click Unlock, list of locked users.
Idle session timeout
Per company, with an override per group, exempt users and exempt IP or CIDR ranges. Open tabs sign out on their own.
Log out all users
One button closes every open session at once, for example after a security incident. Your own session stays open.
Security log
Who changed a password, who was locked or unlocked, who was signed out and from which IP address. Kept two years.
Portal friendly
Portal users are not forced to rotate passwords. Complexity and history for portal sign-ups can be switched on.
Compared with typical alternatives
What you get beyond a minimum password length.
| Feature | This app | Typical alternatives |
|---|---|---|
| Password expiry with warning banner | Yes, warning N days before | Expiry only, or a separate app |
| Forced change page at sign-in | Yes, works with two-factor sign-in | Reset password e-mail flow |
| Password history (no reuse) | Yes | Yes |
| Complexity rules + no login in password | Yes | Character rules only |
| Lockout after failed sign-ins | Yes, with Unlock button | Not available |
| Idle timeout per group | Yes, plus exempt users and IP ranges | One global value in system parameters |
| Browser tabs sign out when idle | Yes | Only on the next click |
| Log out all users | One button | Not available |
| Security log | Yes, per company | Server log file |
| Settings page | Yes, per company | System parameters |
Questions
Will my users be locked out right after installing?
No. Expiry counts from the install date, existing passwords keep working and the idle timeout is off until you set it.
Does it work with two-factor authentication?
Yes. The forced change page appears after the authentication code, and the lockout counts wrong passwords only, never wrong codes.
What happens to integrations that use API keys?
API keys keep working while an account is locked, because they cannot be guessed. Wrong passwords over the API count towards the lockout.
Are portal and shop customers affected?
Portal users never get password expiry. Complexity and history for them are off by default and can be switched on with one tick.
Is there a way back if the administrator is locked?
Another administrator clicks Unlock, or the lock ends by itself after the configured minutes.
Questions or ideas?
We answer every message.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
Viyug Infotech
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 946 |
| Technical Name |
viyug_security_policy |
| License | LGPL-3 |
| Website | https://viyuginfotech.com |
Please log in to comment on this module