Skip to content

Commit

Permalink
Update password.js
Browse files Browse the repository at this point in the history
  • Loading branch information
F1xGOD authored Feb 7, 2024
1 parent 8db49d8 commit 64af614
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion password.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,44 @@ if(tablocation != "login"){
i++;
}
if(success2==true){
console.log("Session Login")
var ii2 = 0;
var uname = getCookie("usernamecred");
var sts = "";
$.getJSON(`https://networkcalc.com/api/encoder/${uname}?encoding=base64`, function (dataa) {uname=dataa.encoded
while (ii2 < actdata.accounts.length){
if(actdata.accounts[ii2].username==uname){
sts=actdata.accounts[ii2].status
}
ii2++
}})
if(sts=="active"){
console.log("Session Login")}else{
console.log("ACCOUNT DECATIVATED!")
setCookie("usernamecred","",999);
setCookie("passwordcred","",999);
setCookie("tries","",999);
}
}else{
let triess = getCookie("tries");
Object.freeze(triess);
if(triess>0){
var iii1 = 0
var fond = false
while (iii1 < actdata.deletedaccounts.length){
if(actdata.deletedaccounts[iii1].username==data4.encoded&&actdata.deletedaccounts[iii1].password==data5.encoded){
fond = true
}
iii1++
}
if(fond==false){
conole.log("LOGIN!");
window.location.replace(`${host}/login`)}else{
conole.log("ACCOUNT DELETED!")
setCookie("usernamecred","",999);
setCookie("passwordcred","",999);
setCookie("tries","",999);
window.location.replace(`${host}/login`)
}}else{
window.location.replace(`${host}/forbidden`)
}
}
Expand Down

0 comments on commit 64af614

Please sign in to comment.