Skip to content

Commit

Permalink
Merge pull request #11 from nextcloud/stable9-add-readme
Browse files Browse the repository at this point in the history
[stable9] add a README file
  • Loading branch information
MorrisJobke authored Jun 30, 2016
2 parents 02e5b0f + 0fd35f2 commit 0c714b4
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 0c714b4

Please sign in to comment.