nextcloud/password_policy

Name: password_policy

Owner: Nextcloud

Description: :lock: Let the admin define certain rules for passwords, e.g. a minimum length

Created: 2016-06-24 08:47:31.0

Updated: 2018-05-24 00:37:39.0

Pushed: 2018-05-24 00:37:46.0

Homepage:

Size: 5344

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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 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:

ntDispatcher = \OC::$server->getEventDispatcher();
nt = new Symfony\Component\EventDispatcher\GenericEvent($password);
ntDispatcher->dispatch('OCP\PasswordPolicy::validate', $event);

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.