Tortoise based database models
This commit is contained in:
1 parent
2c7b3d61d1
commit
cccdb7d231
12 files changed
+469
-382
No files matched your search
@@ -73,14 +73,14 @@ backend.authResult().then(handleAuthResult);
|
||||
|
||||
<div class="container" v-if="loginState=='signup'">
|
||||
<div class="content">
|
||||
<h3>Login</h3>
|
||||
<h3>Signup</h3>
|
||||
|
||||
<form @submit.prevent="signupSubmit($event.target)">
|
||||
<input name="email" type="text" placeholder="email">
|
||||
<input name="username" type="text" placeholder="username">
|
||||
<input name="password" type="password" placeholder="password">
|
||||
<input name="passwordRepeat" type="password" placeholder="password">
|
||||
<button class="button" type="submit">Login</button>
|
||||
<button class="button" type="submit">Signup</button>
|
||||
|
||||
<p style="margin-top: 2em;">
|
||||
Already have a user?
|
||||
|
||||
@@ -47,6 +47,7 @@ function initState () {
|
||||
|
||||
// Clear token if it doesn't work
|
||||
authDeferred.promise.then(success => {
|
||||
console.log(`initState.authDeferred; success=${success}`);
|
||||
if (!success) {
|
||||
localStorage.removeItem('loginToken');
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
z-index: var(--z-index-alert);
|
||||
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
|
||||
Reference in new issue
Block a user