invite auto redirect

This commit is contained in:
LukasNowy
2019-02-19 10:01:43 +01:00
parent e97fb4ce2e
commit 51e8fe7ad3
4 changed files with 54 additions and 8 deletions

View File

@ -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)}});

View File

@ -0,0 +1,8 @@
body {
background-color: #121212;
display:none;
}
.cont {
background-color: #f5f5f5;
}