mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 17:49:09 +00:00
testing signout logic
This commit is contained in:
parent
82231cb04b
commit
192d023325
@ -24,6 +24,7 @@
|
||||
<img id="sideload" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Hamburger_icon.svg/1200px-Hamburger_icon.svg.png">
|
||||
</span>
|
||||
<h1 id="mainhead">TitanScout- Torunament Statistics</h1>
|
||||
<p id="status">You are not signed in.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -14,4 +14,19 @@ function closeNav() {
|
||||
|
||||
window.onload=function(){
|
||||
document.getElementById('sideload').style.display = 'block';
|
||||
user= firebase.auth().currentUser
|
||||
if (user != null) {
|
||||
if (user.displayName != null) {
|
||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
|
||||
} else if (user.email != null) {
|
||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
|
||||
} else if (user.phoneNumber != null) {
|
||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.phoneNumber;
|
||||
} else {
|
||||
document.getElementById('status').innerHTML = "You are signed in.";
|
||||
}
|
||||
}else{
|
||||
window.location.replace('../');
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user