@@ -552,7 +552,7 @@ namespace Learun.Application.Web.Controllers | |||||
/// <returns></returns> | /// <returns></returns> | ||||
[HttpPost] | [HttpPost] | ||||
[AjaxOnly] | [AjaxOnly] | ||||
[HandlerValidateAntiForgeryToken] | |||||
//[HandlerValidateAntiForgeryToken] | |||||
public ActionResult CheckLogin(string username, string password, string verifycode, string up, string defaultPwdTip) | public ActionResult CheckLogin(string username, string password, string verifycode, string up, string defaultPwdTip) | ||||
{ | { | ||||
@@ -151,13 +151,13 @@ | |||||
success: function (res) { | success: function (res) { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (source == "noLogin") { | if (source == "noLogin") { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||||
window.location.href ="/SSOSystem/Index"; | |||||
} else { | } else { | ||||
if (res.data.pwd == true) { | if (res.data.pwd == true) { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index?pwd=true"; | |||||
window.location.href ="/Home/Index?pwd=true"; | |||||
} | } | ||||
else { | else { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||||
window.location.href = "/Home/Index"; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -151,10 +151,10 @@ | |||||
success: function (res) { | success: function (res) { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (source == "noLogin") { | if (source == "noLogin") { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||||
window.location.href = "/SSOSystem/Index"; | |||||
} else { | } else { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||||
window.location.href = "/Home/Index"; | |||||
} | } | ||||
} | } | ||||
else if (res.code == 400) { | else if (res.code == 400) { | ||||
@@ -152,10 +152,10 @@ | |||||
success: function (res) { | success: function (res) { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (source == "noLogin") { | if (source == "noLogin") { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||||
window.location.href ="/SSOSystem/Index"; | |||||
} else { | } else { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||||
window.location.href = "/Home/Index"; | |||||
} | } | ||||
} | } | ||||
else if (res.code == 400) { | else if (res.code == 400) { | ||||
@@ -152,10 +152,10 @@ | |||||
success: function (res) { | success: function (res) { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (source == "noLogin") { | if (source == "noLogin") { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||||
window.location.href ="/SSOSystem/Index"; | |||||
} else { | } else { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||||
window.location.href = "/Home/Index"; | |||||
} | } | ||||
} | } | ||||
else if (res.code == 400) { | else if (res.code == 400) { | ||||
@@ -152,10 +152,10 @@ | |||||
success: function (res) { | success: function (res) { | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (source == "noLogin") { | if (source == "noLogin") { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||||
window.location.href = "/SSOSystem/Index"; | |||||
} else { | } else { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||||
window.location.href = "/Home/Index"; | |||||
} | } | ||||
} | } | ||||
else if (res.code == 400) { | else if (res.code == 400) { | ||||
@@ -152,10 +152,10 @@ | |||||
if (res.code == 200) { | if (res.code == 200) { | ||||
lrPage.logining(false); | lrPage.logining(false); | ||||
if (source == "noLogin") { | if (source == "noLogin") { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"; | |||||
window.location.href = "/SSOSystem/Index"; | |||||
} else { | } else { | ||||
window.location.href = DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/Home/Index"; | |||||
window.location.href = "/Home/Index"; | |||||
} | } | ||||
} | } | ||||
else if (res.code == 400) { | else if (res.code == 400) { | ||||