mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
Harvey Tindall
2934832a98
this will add an optional validity period to users, where their account will be disabled (or deleted) a specified amount of time after they created it.
18 lines
752 B
HTML
18 lines
752 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.userDurationEnabled = {{ .userDuration }};
|
|
window.userDurationDays = {{ .userDurationDays }};
|
|
window.userDurationHours = {{ .userDurationHours }};
|
|
window.userDurationMinutes = {{ .userDurationMinutes }};
|
|
window.userDurationMessage = {{ .userDurationMessage }};
|
|
</script>
|
|
<script src="js/form.js" type="module"></script>
|
|
{{ end }}
|