Files
NodeBB/public/templates/reset_code.tpl

30 lines
1.0 KiB
Smarty
Raw Normal View History

2013-04-23 16:18:43 -04:00
<h1>Reset Password</h1>
<div class="well">
<div class="alert alert-success" id="success" style="display:none">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Password Changed</strong>
<p></p>
</div>
<label>New Password</label><input type="password" placeholder="A new password" id="password" /><br />
2013-04-23 20:25:01 -04:00
<label>... and again</label><input type="password" placeholder="" id="repeat" /><br />
<input type="hidden" value="{reset_code}" />
2013-04-23 16:18:43 -04:00
<button class="btn btn-primary" id="reset" type="submit">Reset Password</button>
</div>
<script type="text/javascript">
(function() {
2013-04-23 20:25:01 -04:00
var resetEl = document.getElementById('reset'),
password = document.getElementById('password'),
repeat = document.getElementById('repeat');
2013-04-23 16:18:43 -04:00
resetEl.addEventListener('click', function() {
2013-04-23 20:25:01 -04:00
if (password.value === repeat.value) {
alert("match");
}
2013-04-23 16:18:43 -04:00
}, false);
// socket.on('user.password.reset', function(data) {
// if (data.success === 'ok') {
// ajaxify.go('/');
// }
// });
}());
</script>