mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
commit
b16c1ca465
3 changed files with 11 additions and 1 deletions
|
@ -206,6 +206,10 @@ h2 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
@apply px-2.5 py-0.25 my-0.45 rounded-xl bg-white;
|
@apply px-2.5 py-0.25 my-0.45 rounded-xl bg-dark-900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .line {
|
||||||
|
@apply bg-white;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
:placeholder="$t('login.username')"
|
:placeholder="$t('login.username')"
|
||||||
:aria-label="$t('login.username')"
|
:aria-label="$t('login.username')"
|
||||||
|
v-on:keyup.enter="login"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
autocomplete="password"
|
autocomplete="password"
|
||||||
:placeholder="$t('login.password')"
|
:placeholder="$t('login.password')"
|
||||||
:aria-label="$t('login.password')"
|
:aria-label="$t('login.password')"
|
||||||
|
v-on:keyup.enter="login"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -49,6 +51,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
login() {
|
login() {
|
||||||
|
if (!this.username || !this.password) return;
|
||||||
this.fetchJson(this.authApiUrl() + "/login", null, {
|
this.fetchJson(this.authApiUrl() + "/login", null, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
:placeholder="$t('login.username')"
|
:placeholder="$t('login.username')"
|
||||||
:aria-label="$t('login.username')"
|
:aria-label="$t('login.username')"
|
||||||
|
v-on:keyup.enter="register"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
autocomplete="password"
|
autocomplete="password"
|
||||||
:placeholder="$t('login.password')"
|
:placeholder="$t('login.password')"
|
||||||
:aria-label="$t('login.password')"
|
:aria-label="$t('login.password')"
|
||||||
|
v-on:keyup.enter="register"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -49,6 +51,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
register() {
|
register() {
|
||||||
|
if (!this.username || !this.password) return;
|
||||||
this.fetchJson(this.authApiUrl() + "/register", null, {
|
this.fetchJson(this.authApiUrl() + "/register", null, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|
Loading…
Reference in a new issue