{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "./base" }} {{ import "/_libs/forms" }} {{ block title() }}{{ gettext("Sign in") }}{{ end }} {{ block main() }}

{{ gettext("Sign in to Readeck") }}

{{ yield formErrors(form=.Form) }} {{ yield textField(field=.Form.Get("username"), label=gettext("Username or email address"), class="max", inputAttrs=attrList( "data-login-form-target", "username", "autocapitalize", "off", "autocomplete", "username", ), ) }} {{ yield passwordField(field=.Form.Get("password"), label=gettext("Password"), inputAttrs=attrList( "data-login-form-target", "password", "autocomplete", "current-password", ), ) }}
{{- if hasPermission("email", "send") -}}

{{ gettext("Forgot your password?") }}

{{- end -}} {{ end }}