anti csrf token generated upon login
This commit is contained in:
@ -96,6 +96,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="csrf_token" value="<%= csrfToken %>">
|
||||
<div class="button">
|
||||
<input type="submit" value="Register">
|
||||
</div>
|
||||
|
@ -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>
|
||||
|
@ -69,6 +69,7 @@
|
||||
<label for="otp">OTP:</label>
|
||||
<input type="text" id="otp" name="otp" required>
|
||||
<br>
|
||||
<input type="hidden" name="csrf_token" value="<%= csrfToken %>">
|
||||
<button type="submit">Submit OTP</button>
|
||||
</form>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user