Ver a proveniência

Hotfix login (#4680)

* FIx XSS Sanitize

* Don't sanitize password
version-14
Faris Ansari há 7 anos
committed by Nabin Hait
ascendente
cometimento
6d03ebd1c6
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      frappe/templates/includes/login/login.js

+ 1
- 1
frappe/templates/includes/login/login.js Ver ficheiro

@@ -18,7 +18,7 @@ login.bind_events = function() {
var args = {};
args.cmd = "login";
args.usr = frappe.utils.xss_sanitise(($("#login_email").val() || "").trim());
args.pwd = frappe.utils.xss_sanitise($("#login_password").val());
args.pwd = $("#login_password").val();
args.device = "desktop";
if(!args.usr || !args.pwd) {
frappe.msgprint("{{ _("Both login and password required") }}");


Carregando…
Cancelar
Guardar