summaryrefslogtreecommitdiffstats
path: root/application/views/user/hash_password.php
blob: d85d2810cde7152914331e6d883c3fbbddf5bacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>