aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates')
-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>