After C is injected into B, there is an additional identity, which needs to be logged out first and then automatically logged in

 

//Confirm to open personal business

function openPersonMerchant() {

if (!document.getElementById("agree").checked) {

alert("Please agree to the terms of "Qianbao.com Merchant Agreement"");

return;

}

HYIP.ajax('${ctx}/verify/goMerchantPersonVerifySuccess.html',{name:$('#name').html(),idCode:$('#idCodeTrue').val(),bankName:$('#bankName').html(),bankCardNum:$('#bankCardNum').html()},function(data){

if(data.success){

var url ="<fmt:message key='cas.domain' />/cas/logout?service=<fmt:message key='user.domain' />/usercenter/logout/logout.html?username="+data.data.param+",http://enterprise.qbao.com/verify/merchantVerifysuccess.html";

window.location.href = url;

}

},function(data){

HYIP.showDynamicErrorMsg(data.message); 

});

 

After successfully opening a personal business, log out first, then log in automatically, and jump to enterprise

http://passport.qbao.com/cas/logout?service=user.qbao.com//usercenter/logout/logout.html?username=xx,http://enterprise.qbao.com/verify/merchantVerifysuccess.html

 

<%@ include file="logoutChild.jsp"%> This section is for the user to log out of each subsystem first

<script type="text/javascript">

$(document).ready(function() {

$.removeCookie('JSESSIONID', { path: '/' });

$.removeCookie('userName', { path: '/' });

if ("${backUrl}" != "") {

window.location.href = '<fmt:message key="cas.auto.login.url" bundle="${casties}"/>?username=${username}&sign=${sign}&backUrl=${backUrl}';

} else {

window.location.href = '<fmt:message key="cas.auto.login.url" bundle="${casties}"/>?username=${username}&sign=${sign}';

}

});

</script>

 

cas.auto.login.url=http://cas:5050/cas/qianbaoAutoLogin

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326865461&siteId=291194637