diff --git a/frappe/core/doctype/user/user.js b/frappe/core/doctype/user/user.js index 82ecdbddca..c4873ee40e 100644 --- a/frappe/core/doctype/user/user.js +++ b/frappe/core/doctype/user/user.js @@ -168,7 +168,7 @@ frappe.ui.form.on('User', { email: frm.doc.email }, callback: function(r) { - if (r.message == undefined) { + if (!Array.isArray(r.message)) { frappe.route_options = { "email_id": frm.doc.email, "awaiting_password": 1,