From 8f02449ee8f081aef28d18d238d0d171e9cc85c3 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 3 Oct 2023 11:19:47 -0400 Subject: [PATCH] Show friendly message on /reset when password-based login is disabled --- pages/reset.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/reset.tmpl b/pages/reset.tmpl index 3db2418..bc18377 100644 --- a/pages/reset.tmpl +++ b/pages/reset.tmpl @@ -14,7 +14,11 @@ label {

Reset your password

-{{ if not .EmailEnabled }} +{{ if .DisablePasswordAuth }} +
+

Password login is disabled on this server, so it's not possible to reset your password.

+
+{{ else if not .EmailEnabled }}

Email is not configured on this server! Please contact your admin to reset your password.