Skip to content

Commit

Permalink
add a README file
Browse files Browse the repository at this point in the history
add a readme with a short description and a screenshot
  • Loading branch information
MariusBluem authored Jun 30, 2016
1 parent 02e5b0f commit 0fd35f2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
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);
````

0 comments on commit 0fd35f2

Please sign in to comment.