anti csrf token generated upon login

This commit is contained in:
BIG2EYEZ
2024-01-12 16:58:47 +08:00
parent f1d13a1217
commit 9dcf1429a8
6 changed files with 236 additions and 110 deletions

View File

@@ -86,7 +86,7 @@ button:hover {
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Enter your password" required>
<input type="hidden" name="csrf_token" value="<%= csrfToken %>">
<button type="submit">Login</button>
</form>
@@ -95,4 +95,5 @@ button:hover {
</div>
</div>
</body>
</html>