mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-11-13 05:40:10 +00:00
Harvey Tindall
1e9d184508
All works now, but i'll add a field on the accounts tab for users with an expiry, as well as a 'disabled' badge.
18 lines
732 B
HTML
18 lines
732 B
HTML
{{ define "form-base" }}
|
|
<script>
|
|
window.usernameEnabled = {{ .username }};
|
|
window.validationStrings = JSON.parse({{ .validationStrings }});
|
|
window.invalidPassword = "{{ .strings.reEnterPasswordInvalid }}";
|
|
window.URLBase = "{{ .urlBase }}";
|
|
window.code = "{{ .code }}";
|
|
window.messages = JSON.parse({{ .notifications }});
|
|
window.confirmation = {{ .confirmation }};
|
|
window.userExpiryEnabled = {{ .userExpiry }};
|
|
window.userExpiryDays = {{ .userExpiryDays }};
|
|
window.userExpiryHours = {{ .userExpiryHours }};
|
|
window.userExpiryMinutes = {{ .userExpiryMinutes }};
|
|
window.userExpiryMessage = {{ .userExpiryMessage }};
|
|
</script>
|
|
<script src="js/form.js" type="module"></script>
|
|
{{ end }}
|