<?php
/*
this is a user-facing page
UserSpice 4
An Open Source PHP User Management System
by the UserSpice Team at http://UserSpice.com

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
?>
<div class="row">
	<div class="col-sm-12">
		<h2 class="text-center"><?=$ruser->data()->fname;?>,</h2>
		<p class="text-center"><?=lang("VER_PLEASE");?></p>
		<form action="forgot_password_reset.php?reset=1" method="post">
			<?php if(!$errors=='') {?><div class="alert alert-danger"><?=display_errors($errors);?></div><?php } ?>
			<div class="form-group">
				<label for="password"><?=lang("PW_NEW");?>:</label>
				<input type="password" name="password" value="" id="password" class="form-control" autocomplete="new-password">
			</div>
			<div class="form-group">
				<label for="confirm"><?=lang("PW_CONF");?>:</label>
				<input type="password" name="confirm" value="" id="confirm" class="form-control" autocomplete='new-password'>
			</div>
			<input type="hidden" name="csrf" value="<?=Token::generate();?>">
			<input type="hidden" name="email" value="<?=$email;?>">
			<input type="hidden" name="vericode" value="<?=$vericode;?>">
			<input type="submit" name="resetPassword" value="<?=lang("GEN_RESET");?>" class="btn btn-primary">
		</form>
		<br />
	</div><!-- /.col -->
</div><!-- /.row -->
