started teams page

This commit is contained in:
Jacob Levine
2019-02-12 20:20:30 -06:00
parent c6b2840e07
commit 45a4387c68
3 changed files with 100 additions and 23 deletions

View File

@@ -52,14 +52,14 @@ window.onload = function() {
function signout() {
var user = firebase.auth().currentUser;
firebase.auth().signOut()
window.location.href = '../';
firebase.auth().signOut().then(
window.location.href = '../');
}
function deleteAccount() {
try {
firebase.auth().currentUser.delete()
window.location.href = '../';
firebase.auth().currentUser.delete().then(
window.location.href = '../');
} catch (error) {
if (error.code == 'auth/requires-recent-login') {
alert("Please sign in again to delete your account.")
@@ -68,6 +68,7 @@ function deleteAccount() {
}
}
function updun() {
var user = firebase.auth().currentUser;
user.updateProfile({