mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
Prevent double clicking of the submit button on login (#3554)
Signed-off-by: Philip Corliss <pcorliss@drwholdings.com>
This commit is contained in:
@@ -32,6 +32,11 @@ body {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.dex-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.dex-btn-icon {
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
@@ -32,4 +32,12 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
document.querySelector('form').onsubmit = function(e) {
|
||||
var el = document.querySelector('#submit-login');
|
||||
el.setAttribute('disabled', 'disabled');
|
||||
};
|
||||
</script>
|
||||
|
||||
{{ template "footer.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user