This commit is contained in:
Jacob Levine 2019-02-06 14:51:31 -06:00
parent c591c84c75
commit dc80127dee

View File

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