Skip to content

Commit 1c19817

Browse files
committed
move prepend salt toggle
1 parent 2ef7716 commit 1c19817

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ Name | Description | Details
4949
--- | --- | ---
5050
**Allow display name change** | With this option enabled user can change its display name. The display name change is propagated to the database. | Optional.<br/>Default: false.<br/>Requires: user *Display name* column.
5151
**Allow password change** | Can user change its password. The password change is propagated to the database. See [Hash algorithms](#hash-algorithms). | Optional.<br/>Default: false.
52-
**Prepend salt** | Prepend a salt to the password instead of appending it. See [User table](#user-table) -> **Salt**. | Optional.<br/>Default: false.
5352
**Use cache** | Use database query results cache. The cache can be cleared any time with the *Clear cache* button click. | Optional.<br/>Default: false.
5453
**Hash algorithm** | How users passwords are stored in the database. See [Hash algorithms](#hash-algorithms). | Mandatory.
5554
**Email sync** | Sync e-mail address with the Nextcloud.<br/>- *None* - Disables this feature. This is the default option.<br/>- *Synchronise only once* - Copy the e-mail address to the Nextcloud preferences if its not set.<br/>- *Nextcloud always wins* - Always copy the e-mail address to the database. This updates the user table.<br/>- *SQL always wins* - Always copy the e-mail address to the Nextcloud preferences. | Optional.<br/>Default: *None*.<br/>Requires: user *Email* column.
@@ -73,6 +72,7 @@ Name | Description | Details
7372
**Active** | Flag indicating if user can log in. | Optional.<br/>Default: true.
7473
**Provide avatar** | Flag indicating if user can change its avatar. | Optional.<br/>Default: false.
7574
**Salt** | Salt which is appended to password when checking or changing the password. | Optional.
75+
**Prepend salt** | Prepend a salt to the password instead of appending it. | Optional.<br/>Default: false.
7676

7777
#### Group table
7878

templates/admin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ function print_select_options(
109109
<p class="settings-hint"><?php p($l->t("Here are all currently supported options.")); ?></p>
110110
<fieldset><?php
111111
print_checkbox_input($l, "opt-name_change", "Allow display name change", $_["opt.name_change"]);
112-
print_checkbox_input($l, "opt-password_change", "Allow password change", $_["opt.password_change"]);
113-
print_checkbox_input($l, "opt-prepend_salt", "Prepend salt", $_["opt.prepend_salt"]); ?>
112+
print_checkbox_input($l, "opt-password_change", "Allow password change", $_["opt.password_change"]); ?>
114113
<div class="button-right"><?php
115114
print_checkbox_input($l, "opt-use_cache", "Use cache", $_["opt.use_cache"], false); ?>
116115
<input type="submit" id="user_sql-clear_cache" value="<?php p($l->t("Clear cache")); ?>">
@@ -152,7 +151,8 @@ function print_select_options(
152151
print_text_input($l, "db-table-user-column-name", "Display name", $_["db.table.user.column.name"]);
153152
print_text_input($l, "db-table-user-column-active", "Active", $_["db.table.user.column.active"]);
154153
print_text_input($l, "db-table-user-column-avatar", "Provide avatar", $_["db.table.user.column.avatar"]);
155-
print_text_input($l, "db-table-user-column-salt", "Salt", $_["db.table.user.column.salt"]); ?>
154+
print_text_input($l, "db-table-user-column-salt", "Salt", $_["db.table.user.column.salt"]);
155+
print_checkbox_input($l, "opt-prepend_salt", "Prepend salt", $_["opt.prepend_salt"]); ?>
156156
</fieldset>
157157
</div>
158158
<div class="section">

0 commit comments

Comments
 (0)