Fix duration saying never when it's unlimited

This commit is contained in:
2026-09-13 09:10:46 +02:00
parent e7344f8aab
commit b24467c37d
5 changed files with 22 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (s *Server) handleLoginPage(w http.ResponseWriter, r *http.Request) {
page: s.page(r, "Log in", false),
Next: next,
MaxSize: config.FormatSize(lim.MaxSize),
MaxExpiry: config.FormatDuration(lim.MaxExpiry),
MaxExpiry: config.FormatLifetime(lim.MaxExpiry),
Vanity: lim.AllowVanity,
})
return