aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/user.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-15 04:02:13 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-15 04:02:13 +0100
commit8e79f279938f0fff64ddd381d073c2c277dd2d5c (patch)
treebfb4b6f596b148e5d4b07ff9db0030b212bf6d28 /app/view/templates/user.php
parent393709dcf84776c760146722560816172167fe98 (diff)
parentb361e2e5d5bdb6cc6256d50f8292c910fc4d3de0 (diff)
downloadwcms-8e79f279938f0fff64ddd381d073c2c277dd2d5c.tar.gz
wcms-8e79f279938f0fff64ddd381d073c2c277dd2d5c.zip
Merge branch 'implement-passwordhash' into develop
Diffstat (limited to 'app/view/templates/user.php')
-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 d97cc31..451d3ce 100644
--- a/app/view/templates/user.php
+++ b/app/view/templates/user.php
@@ -30,7 +30,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>
@@ -41,6 +41,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>
@@ -69,7 +75,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>