From d42c6927d5dec1a596aa733ab5b28c0ba5c15b84 Mon Sep 17 00:00:00 2001 From: Adrian Gruntkowski Date: Mon, 4 Dec 2023 15:27:56 +0100 Subject: [PATCH] Use autocomplete=new-password for shared link password field (#3589) --- lib/plausible_web/templates/site/new_shared_link.html.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible_web/templates/site/new_shared_link.html.eex b/lib/plausible_web/templates/site/new_shared_link.html.eex index f96ff386d..d68ab55fa 100644 --- a/lib/plausible_web/templates/site/new_shared_link.html.eex +++ b/lib/plausible_web/templates/site/new_shared_link.html.eex @@ -10,7 +10,7 @@
<%= label f, :password, "Password (optional)", class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %>
- <%= password_input f, :password, class: "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md dark:bg-gray-900 dark:border-gray-500 dark:text-gray-300 dark:focus:bg-gray-800 dark:focus:border-gray-500", autocomplete: "off" %> + <%= password_input f, :password, class: "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md dark:bg-gray-900 dark:border-gray-500 dark:text-gray-300 dark:focus:bg-gray-800 dark:focus:border-gray-500", autocomplete: "new-password" %> <%= error_tag f, :password %>

Password protection is optional. Please make sure you save it in a secure place. Once the link is created, we cannot reveal the password.