diff options
Diffstat (limited to 'application/views/user')
-rw-r--r-- | application/views/user/hash_password.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/application/views/user/hash_password.php b/application/views/user/hash_password.php new file mode 100644 index 000000000..a0aa88ce5 --- /dev/null +++ b/application/views/user/hash_password.php @@ -0,0 +1,26 @@ +<?php +if (!empty($error)) { + echo "<p>"; + echo implode("<br />\n", $error); + echo "</p>"; +} + +if ($hash) { + echo "<p>Result (this hash uses a random salt, so it will be different each time you submit this form):<br />$hash</p>\n"; +} +?> +<?php echo form_open('user/hash_password'); ?> + <table> + <tr> + <td>Password</td> + <td> <input type="password" name="password" /></td> + </tr><tr> + <td>Confirm password</td> + <td> <input type="password" name="password_confirm" /></td> + </tr><tr> + <td></td> + <td><input type="submit" value="Hash it" name="process" /></td> + </tr> + </table> +</form> + |