diff options
-rw-r--r-- | doc/admin/administrator_guide.md | 5 | ||||
-rw-r--r-- | doc/hook/check_account_password.bb | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/doc/admin/administrator_guide.md b/doc/admin/administrator_guide.md index 0cc6b4c0f..bf4dc7355 100644 --- a/doc/admin/administrator_guide.md +++ b/doc/admin/administrator_guide.md @@ -100,7 +100,10 @@ There are several ways to deploy a new hub. * some form of email server or email gateway such that PHP mail() works. -* Mysql 5.x or MariaDB or postgres database server. +* A supported database server. The supported databases are: + - Mysql version 8.0.22 or later + - MariaDB version 10.4 or later + - PostgreSQL version 12 or later * ability to schedule jobs with cron. diff --git a/doc/hook/check_account_password.bb b/doc/hook/check_account_password.bb index 53562ec6e..ce5202f48 100644 --- a/doc/hook/check_account_password.bb +++ b/doc/hook/check_account_password.bb @@ -1 +1,17 @@ [h2]check_account_password[/h2] +Use this hook to provide additional checks or validations of the password given when +registering and account. +[h3]Arguments:[/h3] +[code=php]array( + 'password' => $password, // The password to check + 'result' => array( + 'error' => false, + 'message' => '' + ) +)[/code] +[h3]Results:[/h3] +For a failed check set the [code]error[/code] member of the [code]result[/code] +array to [code]true[/code] and the [code]message[/code] to a short message +explaining why it failed. + +Otherwise, leave it alone. |