fix: set autocomplete attribute for password fields in user and setup wizard forms (#38744)

This commit is contained in:
Raffael Meyer 2026-04-21 01:09:49 +02:00 committed by GitHub
parent ec3922e903
commit 166bb914c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,8 @@ frappe.ui.form.on("User", {
frm.roles_editor.reset();
}
frm.fields_dict.new_password?.$input?.attr("autocomplete", "new-password");
if (
frm.can_edit_roles &&
!frm.is_new() &&

View file

@ -512,6 +512,8 @@ frappe.setup.slides_settings = [
],
onload: function (slide) {
slide.form.fields_dict.password?.$input?.attr("autocomplete", "new-password");
if (frappe.session.user !== "Administrator") {
const { first_name, last_name, email } = frappe.boot.user;
if (first_name || last_name) {