mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-06 06:57:21 +00:00
started teams page
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user