{% import "net/http" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% func RegisterHTML(rq *http.Request) %}
{% if cfg.UseRegistration %} {% elseif cfg.UseFixedAuth %}

Administrators have forbidden registration for this wiki. Administrators can make an account for you by hand; contact them.

← Go back

{% else %}

Administrators of this wiki have not configured any authorization method. You can make edits anonymously.

← Go back

{% endif %}
{% endfunc %} {% func LoginHTML() %}
{% if user.AuthUsed %} {% else %}

Administrators of this wiki have not configured any authorization method. You can make edits anonymously.

← Go home

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