1
0
mirror of https://github.com/titanscouting/tra-analysis.git synced 2025-04-16 14:47:24 +00:00
This commit is contained in:
Jacob Levine 2019-02-06 14:51:31 -06:00
parent c591c84c75
commit dc80127dee

@ -32,7 +32,9 @@ var uiConfig = {
// tosUrl and privacyPolicyUrl accept either url string or a callback // tosUrl and privacyPolicyUrl accept either url string or a callback
// function. // function.
// Terms of service url/callback. // Terms of service url/callback.
tosUrl: function(){alert("this is a test app. don't use it");}, tosUrl: function() {
alert("this is a test app. don't use it");
},
// Privacy policy url/callback. // Privacy policy url/callback.
privacyPolicyUrl: function() { privacyPolicyUrl: function() {
alert("we will steal all of the data"); alert("we will steal all of the data");
@ -85,11 +87,13 @@ var deleteAccount = function() {
} }
} }
}; };
function signout() { function signout() {
var user = firebase.auth().currentUser; var user = firebase.auth().currentUser;
firebase.auth().signOut() firebase.auth().signOut()
handleSignedOutUser() handleSignedOutUser()
} }
function loadupdpi() { function loadupdpi() {
if (firebase.auth().currentUser != null) { if (firebase.auth().currentUser != null) {
document.getElementById('profileupd').style.display = 'block'; document.getElementById('profileupd').style.display = 'block';
@ -100,6 +104,7 @@ function loadupdpi(){
handleSignedOutUser(); handleSignedOutUser();
} }
} }
function upProfileInfo() { function upProfileInfo() {
if (firebase.auth().currentUser != null) { if (firebase.auth().currentUser != null) {
if (document.getElementById('newDN').value != '') { if (document.getElementById('newDN').value != '') {
@ -160,7 +165,8 @@ function upProfileInfo() {
} }
}); });
} else { } else {
handleSignedInUser();} handleSignedInUser();
}
} }
}).catch(function(error) { }).catch(function(error) {
if (error.code == 'auth/requires-recent-login') { if (error.code == 'auth/requires-recent-login') {
@ -230,7 +236,9 @@ function upProfileInfo() {
} }
}); });
} else { } else {
handleSignedInUser();} handleSignedInUser();
}
}
} }
}else { }else {
setTimeout(function() { setTimeout(function() {