Use autocomplete=new-password for shared link password field (#3589)

pull/3590/head
Adrian Gruntkowski 3 years ago committed by GitHub
parent 032823e112
commit d42c6927d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@
<div class="my-4">
<%= label f, :password, "Password (optional)", class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %>
<div class="mt-1">
<%= 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 %>
<p class="mt-2 text-sm text-gray-500 dark:text-gray-200">
Password protection is optional. Please make sure you save it in a secure place. Once the link is created, we cannot reveal the password.

Loading…
Cancel
Save