fix
This commit is contained in:
		@@ -22,7 +22,7 @@ function checkAuth() {
 | 
				
			|||||||
          console.error("Get id token client error: ", error)
 | 
					          console.error("Get id token client error: ", error)
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      } catch {
 | 
					      } catch {
 | 
				
			||||||
        console.error("checkAuth error: ")
 | 
					        console.error("checkAuth error: ");
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // document.getElementById("loginbutton").style.display = "none";
 | 
					      // document.getElementById("loginbutton").style.display = "none";
 | 
				
			||||||
@@ -31,8 +31,7 @@ function checkAuth() {
 | 
				
			|||||||
      // document.getElementById("loginbutton").style.display = "block";
 | 
					      // document.getElementById("loginbutton").style.display = "block";
 | 
				
			||||||
      console.log("Check Auth error", user)
 | 
					      console.log("Check Auth error", user)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  })
 | 
					  });
 | 
				
			||||||
  var user = firebase.auth().currentUser;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
window.onload = function () {
 | 
					window.onload = function () {
 | 
				
			||||||
  checkAuth();
 | 
					  checkAuth();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,9 +16,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <input v-model="email" id="email" type="email">
 | 
					    <input v-model="email" id="email" type="email">
 | 
				
			||||||
    <input v-model="password" id="password" type="password">
 | 
					    <input v-model="password" id="password" type="password">
 | 
				
			||||||
    <button id="loginemailbutton" @click="loginemail()">Login with Email</button>
 | 
					    <button id="loginemailbutton" @click="loginemail">Login with Email</button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <button id="loginbutton" @click="login()">Login with google</button>
 | 
					    <button id="loginbutton" @click="login">Login with google</button>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <a href="/registrieren"><button>Jetzt mit Email und Passwort Registrieren!</button></a>
 | 
					    <a href="/registrieren"><button>Jetzt mit Email und Passwort Registrieren!</button></a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user