+1
-1
@@ -14,7 +14,7 @@ function verify() {
|
||||
firebase.auth().onAuthStateChanged(function(user) {
|
||||
if (user) {
|
||||
readData("users", function(array) {
|
||||
if (array[firebase.auth().currentUser.uid]) {
|
||||
if (array[firebase.auth().currentUser.email.replace("@","|").replace(".",",")]) {
|
||||
document.getElementById("page-content").style.display = "block"
|
||||
document.getElementById("unauthorized").style.display = "none"
|
||||
} else {
|
||||
|
||||
@@ -3,7 +3,7 @@ function checkLogin() {
|
||||
firebase.auth().onAuthStateChanged(function(user) {
|
||||
if (user) {
|
||||
readData("users", function(array) {
|
||||
if (array[firebase.auth().currentUser.uid]) {
|
||||
if (array[firebase.auth().currentUser.email.replace("@","|").replace(".",",")]) {
|
||||
document.getElementById("loginbutton").innerHTML = "<a href='dashboard.html'>Dashboard</a>"
|
||||
var logoutnode = document.createElement("li");
|
||||
document.getElementById("logoutbutton").style.display = "block"
|
||||
|
||||
@@ -8,7 +8,7 @@ function checkLogin() {
|
||||
firebase.auth().onAuthStateChanged(function(user) {
|
||||
if (user) {
|
||||
readData("users", function(array) {
|
||||
if (array[firebase.auth().currentUser.uid]) {
|
||||
if (array[firebase.auth().currentUser.email.replace("@","|").replace(".",",")]) {
|
||||
document.getElementById("loginbutton").innerHTML = "<button class='mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect' onclick='dashboard();'>Dashboard</button>";
|
||||
document.getElementById("logoutbutton").style.display = "block"
|
||||
componentHandler.upgradeDom();
|
||||
|
||||
Reference in New Issue
Block a user