prettified password reset function

This commit is contained in:
Thies Mueller
2021-01-08 19:30:40 +01:00
parent 80fd77bbc1
commit 42f1532e50
2 changed files with 32 additions and 12 deletions

View File

@@ -1,3 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="ressources/css/bootstrap.min.css" crossorigin="anonymous">
<title>Forgot Password</title>
</head>
<body>
<?php
$pdo = new PDO('mysql:host=localhost;dbname=usertable', 'usertable', 'password');
@@ -69,11 +77,13 @@ if(isset($error) && !empty($error)) {
echo $error;
}
?>
<script src="ressources/js/bootstrap.min.js"></script>
<form action="?send=1" method="post">
E-Mail:<br>
<input type="email" name="email" value="<?php echo isset($_POST['email']) ? htmlentities($_POST['email']) : ''; ?>"><br>
<input type="submit" value="New Password">
<div class="form-group">
<label for="email">Email</label>
0<input type="email" name="email" id="email" class="form-control" value="<?php echo isset($_POST['email']) ? htmlentities($_POST['email']) : ''; ?>"><br>
</div>
<button type="submit" class="btn btn-primary">
</form>
<?php