summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-05-03 16:36:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-05-03 16:36:05 +0200
commitf3cb1c31e30a0d31eb545439fe3ad7da68ccb189 (patch)
tree005b4ab52f741a7e25a1555b7ef1559dcb65e311 /application/views
parentae834cc5b55625db2e28d92c0231791cb9ce1cdf (diff)
user/hash_password: add form to support normal browsers
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r--application/views/user/hash_password.php26
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>
+