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)}});
|
||||
|
8
express-server/public/invite/style.css
Normal file
8
express-server/public/invite/style.css
Normal file
@ -0,0 +1,8 @@
|
||||
body {
|
||||
background-color: #121212;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.cont {
|
||||
background-color: #f5f5f5;
|
||||
}
|
Reference in New Issue
Block a user