-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a readme with a short description and a screenshot
- Loading branch information
1 parent
02e5b0f
commit 0fd35f2
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# 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: | ||
|
||
![](https://github.com/nextcloud/screenshots/blob/master/password_policy/password_policy_settings.png) | ||
|
||
By default the app enforces a minimum password length of 10 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->getEventDispatcher(); | ||
$event = new Symfony\Component\EventDispatcher\GenericEvent($password); | ||
$eventDispatcher->dispatch('OCP\PasswordPolicy::validate', $event); | ||
```` |