This commit is contained in:
Georg Reisinger 2019-03-16 18:51:39 +01:00
parent 958a1040af
commit 631e7103d0
2 changed files with 4 additions and 5 deletions

View File

@ -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();

View File

@ -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>