This commit is contained in:
viviannTam
2024-01-30 15:54:04 +08:00
parent 31fe6b3c7c
commit 7bd92805dd
5 changed files with 25 additions and 72 deletions

View File

@ -3,10 +3,10 @@
<body>
<section class="wrapper">
<div class="form">
<header>Reset Password</header>
<form action="auth/checkemail" method="POST" onsubmit="formAJAX(this)">
<header>Forgot Password</header>
<form action="auth/checkemail" onsubmit="formAJAX(this)" evalAJAX="app.auth.logInRedirect();">
<input type="email" name="email" placeholder="Email" required
pattern="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
pattern="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
<input type="submit" value="Reset Password" />
</form>
<br>

View File

@ -1,30 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Your password has been resetted</title>
<link href="css/reset.css" rel="stylesheet">
</head>
<%- include('logintop') %>
<body>
<table class="main-header">
<tr>
<td style="text-align: center;">
<img src="images/passwordreset.png" alt="Image">
<h1>Your password has been resetted</h1>
</td>
</tr>
</table>
<table class="content-section">
<tr>
<td>
<p>Hello,</p>
<p>Please check your email to reset your password.</p>
</td>
</tr>
</table>
<section class="wrapper">
<div class="form">
<header>Reset Password</header>
<form action="auth/resetPassword" >
<input type="password" name="password" placeholder="password" required>
<input type="cpassword" name="cpassword" placeholder="cpassword" required>
<input type="submit" value="Reset Password" />
</form>
<br>
<a>Dont have an account?</a> <a href="/login">Sign Up</a>
</div>
</section>
<table class="footer">
<tr>
@ -35,5 +24,3 @@
</table>
</body>
</html>