fix: set autocomplete attribute for password fields in user and setup wizard forms (#38744)
This commit is contained in:
parent
ec3922e903
commit
166bb914c1
2 changed files with 4 additions and 0 deletions
|
|
@ -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() &&
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue