Browse Source

Prevent double clicking of the submit button on login (#3554)

Signed-off-by: Philip Corliss <pcorliss@drwholdings.com>
pull/3580/head
Philip Corliss 2 years ago committed by GitHub
parent
commit
a1748467cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      web/static/main.css
  2. 8
      web/templates/password.html

5
web/static/main.css

@ -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;

8
web/templates/password.html

@ -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" . }}

Loading…
Cancel
Save