summaryrefslogtreecommitdiffstats
path: root/application/views/user/hash_password.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/user/hash_password.php')
-rw-r--r--application/views/user/hash_password.php33
1 files changed, 33 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..d85d2810c
--- /dev/null
+++ b/application/views/user/hash_password.php
@@ -0,0 +1,33 @@
+<?php
+if (!empty($error)) {
+ echo "<p class='alert alert-error'>";
+ 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', array("class" => "form-horizontal")); ?>
+ <div class="control-group">
+ <label class="control-label" for="inputPassword">Password</label>
+ <div class="controls">
+ <input type="password" id="inputPassword" name="password" placeholder="Password">
+ </div>
+ </div>
+
+ <div class="control-group">
+ <label class="control-label" for="inputPassword">Confirm password</label>
+ <div class="controls">
+ <input type="password" id="inputPasswordConfirm" name="password_confirm" placeholder="Password confirmation">
+ </div>
+ </div>
+
+ <div class="control-group">
+ <div class="controls">
+ <button type="submit" class="btn btn-primary" name="process">Hash it</button>
+ </div>
+ </div>
+</form>
+