Procházet zdrojové kódy

fix(UX): suggest app-specific password for gmail logins (#16812)

version-14
Ankush Menat před 3 roky
committed by GitHub
rodič
revize
4310a2ecca
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. +4
    -3
      frappe/email/doctype/email_account/email_account.js

+ 4
- 3
frappe/email/doctype/email_account/email_account.js Zobrazit soubor

@@ -134,10 +134,11 @@ frappe.ui.form.on("Email Account", {

show_gmail_message_for_less_secure_apps: function(frm) {
frm.dashboard.clear_headline();
let msg = __("GMail will only work if you enable 2-step authentication and use app-specific password.");
let cta = __("Read the step by step guide here.");
msg += ` <a target="_blank" href="https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/email/email_account_setup_with_gmail">${cta}</a>`;
if (frm.doc.service==="GMail") {
frm.dashboard.set_headline_alert('Gmail will only work if you allow access for less secure \
apps in Gmail settings. <a target="_blank" \
href="https://support.google.com/accounts/answer/6010255?hl=en">Read this for details</a>');
frm.dashboard.set_headline_alert(msg);
}
},



Načítá se…
Zrušit
Uložit