-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added csrf token to login form
- Loading branch information
1 parent
13df75f
commit 222230c
Showing
3 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=10" /> | ||
<title>Admin | Niclas Nordlund Photography</title> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<style> | ||
* { | ||
font-family: "Poppins", sans-serif; | ||
} | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #f0f0f0; | ||
font-size: 18px; | ||
height: 80vh; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<form method="POST"> | ||
<input type="hidden" name="csrfToken" value="<%= csrfToken %>" /> | ||
<label for="password">Password:</label> | ||
<input type="password" id="password" name="password" /> | ||
<button type="submit">Submit</button> | ||
<p><%= errorMessage %></p> | ||
</form> | ||
</body> | ||
</html> |