mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-11-14 14:20:11 +00:00
Harvey Tindall
99875b9176
When signing up, the user is given a pin code which they send to a telegram bot. This provides user verification, but more importantly allows the bot to message the user, as the Telegram API requires the user to interact with the bot before it can do the opposite. The bot should recognize the correct language, but a /lang command is also provided to change it. The verification process is pretty much functional but ui is still broken, and it isn't properly integrated yet.
23 lines
983 B
HTML
23 lines
983 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.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 }}";
|
|
</script>
|
|
<script src="js/form.js" type="module"></script>
|
|
{{ end }}
|