1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-03-10 13:38:20 +00:00
mycorrhiza/web/views/auth-telegram.html

12 lines
588 B
HTML
Raw Permalink Normal View History

{{define "telegram widget"}}
{{if .TelegramEnabled}}<!-- TODO: translate -->
<p class="telegram-notice">{{block "telegram tip" .}}You can log in using Telegram. It only works if you have set your @username in Telegram and this username is free on this wiki.{{end}}</p>
<script async
src="https://telegram.org/js/telegram-widget.js?15"
data-telegram-login="{{.TelegramBotName}}"
data-size="medium"
data-userpic="false"
data-auth-url="{{.URL}}/telegram-login"></script>
{{end}}
{{end}}