From 1c198173e9a8cfd98541a67f57742bbf38228d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=81ojewski?= Date: Mon, 1 Oct 2018 20:25:54 +0200 Subject: [PATCH] move prepend salt toggle --- README.md | 2 +- templates/admin.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a482017..8bccbcf 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,6 @@ Name | Description | Details --- | --- | --- **Allow display name change** | With this option enabled user can change its display name. The display name change is propagated to the database. | Optional.
Default: false.
Requires: user *Display name* column. **Allow password change** | Can user change its password. The password change is propagated to the database. See [Hash algorithms](#hash-algorithms). | Optional.
Default: false. -**Prepend salt** | Prepend a salt to the password instead of appending it. See [User table](#user-table) -> **Salt**. | Optional.
Default: false. **Use cache** | Use database query results cache. The cache can be cleared any time with the *Clear cache* button click. | Optional.
Default: false. **Hash algorithm** | How users passwords are stored in the database. See [Hash algorithms](#hash-algorithms). | Mandatory. **Email sync** | Sync e-mail address with the Nextcloud.
- *None* - Disables this feature. This is the default option.
- *Synchronise only once* - Copy the e-mail address to the Nextcloud preferences if its not set.
- *Nextcloud always wins* - Always copy the e-mail address to the database. This updates the user table.
- *SQL always wins* - Always copy the e-mail address to the Nextcloud preferences. | Optional.
Default: *None*.
Requires: user *Email* column. @@ -73,6 +72,7 @@ Name | Description | Details **Active** | Flag indicating if user can log in. | Optional.
Default: true. **Provide avatar** | Flag indicating if user can change its avatar. | Optional.
Default: false. **Salt** | Salt which is appended to password when checking or changing the password. | Optional. +**Prepend salt** | Prepend a salt to the password instead of appending it. | Optional.
Default: false. #### Group table diff --git a/templates/admin.php b/templates/admin.php index 2542b56..64c4301 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -109,8 +109,7 @@ function print_select_options(

t("Here are all currently supported options.")); ?>

+ print_checkbox_input($l, "opt-password_change", "Allow password change", $_["opt.password_change"]); ?>
"> @@ -152,7 +151,8 @@ function print_select_options( print_text_input($l, "db-table-user-column-name", "Display name", $_["db.table.user.column.name"]); print_text_input($l, "db-table-user-column-active", "Active", $_["db.table.user.column.active"]); print_text_input($l, "db-table-user-column-avatar", "Provide avatar", $_["db.table.user.column.avatar"]); - print_text_input($l, "db-table-user-column-salt", "Salt", $_["db.table.user.column.salt"]); ?> + print_text_input($l, "db-table-user-column-salt", "Salt", $_["db.table.user.column.salt"]); + print_checkbox_input($l, "opt-prepend_salt", "Prepend salt", $_["opt.prepend_salt"]); ?>