1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 05:20:26 +00:00

Add Telegram widget to the Lock page

This commit is contained in:
Timur Ismagilov 2021-07-16 01:54:00 +05:00
parent 49b0a35304
commit ae03dbcd64
2 changed files with 5 additions and 1 deletions

View File

@ -550,6 +550,9 @@ kbd {
display: flex;
justify-content: center;
}
.locked-notice .telegram-notice {
display: none;
}
.locked-notice__message {
max-width: 30rem;

View File

@ -69,7 +69,7 @@
Telegram auth widget was requested by Yogurt. As you can see, we don't offer user administrators control over it. Of course we don't.
{% func telegramWidgetHTML() %}
{% if cfg.TelegramEnabled %}
<p>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.</p>
<p class="telegram-notice">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.</p>
<script async src="https://telegram.org/js/telegram-widget.js?15" data-telegram-login="{%s cfg.TelegramBotName %}" data-size="medium" data-userpic="false" data-auth-url="{%s cfg.URL %}/telegram-login"></script>
{% endif %}
{% endfunc %}
@ -137,6 +137,7 @@ Telegram auth widget was requested by Yogurt. As you can see, we don't offer use
<input class="btn" type="submit" value="Log in">
</form>
</section>
{%= telegramWidgetHTML() %}
</main>
</body>
</html>