fix enter key on login payge

This commit is contained in:
ゆめ 2022-11-18 23:36:19 -06:00
parent b49830aaef
commit 6b25c58deb

View file

@ -5,6 +5,7 @@
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">Login</h5>
</div>
<form action="/api/auth/login" onsubmit="submitLoginForm(this,event)">
<div class="modal-body">
<div class="container-fluid">
@ -13,7 +14,7 @@
<hr>
<span>An error occured.</span>
</div>
<form action="/api/auth/login" onsubmit="submitLoginForm(this,event)">
<div class="mb-3">
<div class="mb-2">
<label for="username">Username</label>
@ -29,17 +30,15 @@
<label for="otp_response">OTP Response (Optional)</label>
<input type="text" class="form-control" name="otp_response" placeholder="OTP Response">
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" onclick="history.back()"
data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" onclick="
let form = $('#login-modal form');
form.submit();
">Submit</button>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>