invite auto redirect
This commit is contained in:
@ -21,6 +21,7 @@ var config = {
|
||||
|
||||
//verifyInvite(last_segment);
|
||||
getList(last_segment);
|
||||
verifyInvite(last_segment);
|
||||
|
||||
|
||||
function verifyInvite(link) {
|
||||
@ -34,12 +35,13 @@ var config = {
|
||||
link: link
|
||||
},
|
||||
success(){
|
||||
// window.location.href = "/dash/" + idtoken
|
||||
alert("Success");
|
||||
window.location.href = "/dash/" + idtoken
|
||||
//alert("Success");
|
||||
},
|
||||
error(err){
|
||||
console.error("Error: " + err);
|
||||
alert("Error");
|
||||
//alert("Error");
|
||||
window.location.href = "/dash/" + idtoken
|
||||
}
|
||||
});
|
||||
}).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}});
|
||||
|
Reference in New Issue
Block a user