diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-15 04:02:13 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-15 04:02:13 +0100 |
commit | 8e79f279938f0fff64ddd381d073c2c277dd2d5c (patch) | |
tree | bfb4b6f596b148e5d4b07ff9db0030b212bf6d28 /app/view/templates/user.php | |
parent | 393709dcf84776c760146722560816172167fe98 (diff) | |
parent | b361e2e5d5bdb6cc6256d50f8292c910fc4d3de0 (diff) | |
download | wcms-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.php | 14 |
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> |