{% import "net/http" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% func RegisterHTML(rq *http.Request) %}
{% if cfg.AllowRegistration %} {%= telegramWidgetHTML() %} {% elseif cfg.UseAuth %}

Registrations are currently closed. Administrators can make an account for you by hand; contact them.

← Go back

{% else %}

Authentication is disabled. You can make edits anonymously.

← Go back

{% endif %}
{% endfunc %} {% func LoginHTML() %}
{% if cfg.UseAuth %} {%= telegramWidgetHTML() %} {% else %}

Authentication is disabled. You can make edits anonymously.

← Go home

{% endif %}
{% endfunc %} 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 %}

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.

{% endif %} {% endfunc %} {% func LoginErrorHTML(err string) %}
{% switch err %} {% case "unknown username" %}

Unknown username.

{% case "wrong password" %}

Wrong password.

{% default %}

{%s err %}

{% endswitch %}

← Try again

{% endfunc %} {% func LogoutHTML(can bool) %}
{% if can %}

Log out?

Confirm

Cancel

{% else %}

You cannot log out because you are not logged in.

Login

← Home

{% endif %}
{% endfunc %} {% func LockHTML() %} 🔒 Locked

🔒

Locked

{%= telegramWidgetHTML() %}
{% endfunc %}