mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
Harvey Tindall
1f9af8df89
When enabled, a temporary one-use invite is created and shown to the user on the account creation form.
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
{{ define "form-base" }}
|
|
<script>
|
|
window.usernameEnabled = {{ .username }};
|
|
window.validationStrings = JSON.parse({{ .validationStrings }});
|
|
window.invalidPassword = "{{ .strings.reEnterPasswordInvalid }}";
|
|
window.URLBase = "{{ .urlBase }}";
|
|
window.code = "{{ .code }}";
|
|
window.language = "{{ .langName }}";
|
|
window.messages = JSON.parse({{ .notifications }});
|
|
window.confirmation = {{ .confirmation }};
|
|
window.userExpiryEnabled = {{ .userExpiry }};
|
|
window.userExpiryMonths = {{ .userExpiryMonths }};
|
|
window.userExpiryDays = {{ .userExpiryDays }};
|
|
window.userExpiryHours = {{ .userExpiryHours }};
|
|
window.userExpiryMinutes = {{ .userExpiryMinutes }};
|
|
window.userExpiryMessage = {{ .userExpiryMessage }};
|
|
window.telegramEnabled = {{ .telegramEnabled }};
|
|
window.telegramRequired = {{ .telegramRequired }};
|
|
window.telegramPIN = "{{ .telegramPIN }}";
|
|
window.discordEnabled = {{ .discordEnabled }};
|
|
window.discordRequired = {{ .discordRequired }};
|
|
window.discordPIN = "{{ .discordPIN }}";
|
|
window.discordInviteLink = {{ .discordInviteLink }};
|
|
window.discordServerName = "{{ .discordServerName }}";
|
|
</script>
|
|
<script src="js/form.js" type="module"></script>
|
|
{{ end }}
|