aboutsummaryrefslogtreecommitdiff
path: root/app/view
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-11 14:13:50 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-11 14:13:50 +0100
commitc5a9c71a1fbade72f35b5d39c5f71380436e96ce (patch)
tree9b68052d9a10c095e94486621020147642771214 /app/view
parente399b37761b2385b208283362a77585fe4322dc5 (diff)
downloadwcms-c5a9c71a1fbade72f35b5d39c5f71380436e96ce.tar.gz
wcms-c5a9c71a1fbade72f35b5d39c5f71380436e96ce.zip
password hash option retro compatible
Diffstat (limited to 'app/view')
-rw-r--r--app/view/templates/user.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/view/templates/user.php b/app/view/templates/user.php
index 957f17f..2034d30 100644
--- a/app/view/templates/user.php
+++ b/app/view/templates/user.php
@@ -20,7 +20,7 @@
<table>
<tr>
-<th>id</th><th>password</th><th>level</th><th>action</th>
+<th>id</th><th>password</th><th>hash</th><th>level</th><th>action</th>
</tr>
<tr>
@@ -31,6 +31,12 @@
<td>
<input type="password" name="password" minlength="4" maxlength="64" required>
</td>
+
+ <td>
+ <input type="hidden" name="passwordhashed" value="0">
+ <input type="checkbox" name="passwordhashed" value="1">
+ </td>
+
<td>
<select name="level" id="level">
<option value="1">reader</option>
@@ -59,7 +65,11 @@ foreach ($userlist as $user ) {
</td>
<td>
- <input type="password" name="password" placeholder="<?= str_repeat('⦁', $user->password('int')) ?>" minlength="4" maxlength="64" >
+ <input type="password" name="password" minlength="4" maxlength="64" >
+ </td>
+
+ <td>
+ <?= $user->passwordhashed() ? '🔑' : '<input type="hidden" name="passwordhashed" value="0"><input type="checkbox" name="passwordhashed" value="1">' ?>
</td>
<td>