Skip to content

🔒 Let the admin define certain rules for passwords, e.g. a minimum length

License

Notifications You must be signed in to change notification settings

nextcloud/password_policy

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4005bee · Nov 24, 2024
Oct 23, 2024
Oct 1, 2022
May 17, 2023
Sep 2, 2016
Nov 24, 2024
Nov 18, 2024
Oct 23, 2024
Oct 25, 2019
Apr 17, 2024
Mar 24, 2021
Oct 23, 2024
Mar 24, 2021
May 12, 2023
Mar 31, 2021
Apr 12, 2022
Jun 27, 2016
Jun 24, 2016
Mar 27, 2021
Apr 12, 2022
Mar 30, 2021
Jan 16, 2023
Jun 3, 2023
Nov 24, 2024
Feb 29, 2024
Apr 12, 2022
Apr 12, 2022

Repository files navigation

Password policy

This app enables the the admin to define certain rules for passwords, for example the minimum length of a password.

Once the app is enabled you find the "Password policy" settings in the admin section:

By default the app enforces a minimum password length of 8 characters and checks every password against the 1.000.000 most common passwords.

Currently the app checks passwords for public link shares and for user passwords if the database backend is used.

You can easily check passwords for your own app by adding following code to your app:

$eventDispatcher = \OC::$server->query(IEventDispatcher::class);
$event = new \OCP\Security\Events\GenerateSecurePasswordEvent();
$eventDispatcher->dispatchTyped($event);
$password = $event->getPassword() ?? 'fallback when this app is not enabled';

About

🔒 Let the admin define certain rules for passwords, e.g. a minimum length

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages