This commit is contained in:
parent
02b218d1a9
commit
4984046e8e
|
@ -196,27 +196,20 @@ const login = () => {
|
|||
if (routers.query.token) {
|
||||
const encryptedText = routers.query.token;
|
||||
const decodedText = decrypt(encryptedText, ENCODED_KEY);
|
||||
console.log("Decrypted Text:", decodedText);
|
||||
// console.log("Decrypted Text:", decodedText);
|
||||
var tokenU = decodedText;
|
||||
}
|
||||
// var tokenU = CryptoJS.enc.Utf8.parse(routers.query.token);
|
||||
// var token = getCookie("lytoken");
|
||||
// tokenU = "6b0e380b4a8f46baae4923f83faf670d";
|
||||
if (tokenU) {
|
||||
document.cookie = `lytoken=${tokenU}`;
|
||||
var token = getCookie("lytoken");
|
||||
if (!token) {
|
||||
window.location.href =
|
||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
||||
window.location.href;
|
||||
} else {
|
||||
tools.data.set("token", token);
|
||||
tools.data.set("type", 2);
|
||||
}
|
||||
} else {
|
||||
var tokenPd = getCookie("lytoken");
|
||||
if (!tokenPd) {
|
||||
window.location.href =
|
||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
||||
window.location.href;
|
||||
} else {
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue