implement user and login
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
<header>
|
||||
<div class="site-title">gimmiCoffee</div>
|
||||
<div class="user-actions">
|
||||
<span class="username">Max Mustermann</span>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
<span class="username">{{ username }}</span>
|
||||
<a onclick="logout()" class="logout">Logout</a>
|
||||
</div>
|
||||
</header>
|
||||
<div id="waterData" style="display: none;">{{ water | tojson }}</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<input type="text" placeholder="Username" id="usrnm">
|
||||
<input type="password" placeholder="Passwort" id="pw">
|
||||
<button id="login-btn">Login</button>
|
||||
<button>Erstelle Nutzer</button>
|
||||
<button id="create-btn">Erstelle Nutzer</button>
|
||||
</div>
|
||||
|
||||
<script src="{{ url_for('static', filename='login.js') }}"></script>
|
||||
|
||||
Reference in New Issue
Block a user