fix: Pass URL for login cmd

Fixes this problematic commit
f0eef73cf7
This commit is contained in:
Suraj Shetty 2023-05-15 10:35:03 +05:30
parent af21fa6b37
commit eb560fd8b4
2 changed files with 4 additions and 3 deletions

View file

@ -23,7 +23,7 @@ login.bind_events = function () {
frappe.msgprint('{{ _("Both login and password required") }}');
return false;
}
login.call(args);
login.call(args, null, "/login");
return false;
});
@ -166,11 +166,12 @@ login.signup = function () {
// Login
login.call = function (args, callback) {
login.call = function (args, callback, url="/") {
login.set_status('{{ _("Verifying...") }}', 'blue');
return frappe.call({
type: "POST",
url: url,
args: args,
callback: callback,
freeze: true,

View file

@ -84,7 +84,7 @@ $.extend(frappe, {
}
return $.ajax({
type: opts.type || "POST",
url: "/login",
url: opts.url || "/",
data: opts.args,
dataType: "json",
headers: {