Skip to content

Commit

Permalink
improve login and register form (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: mathias <mathias.salmon@he-arc.ch>
  • Loading branch information
Nicomatox and nicomaht authored Apr 26, 2024
1 parent a51a4f5 commit 7d7eefd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/Authentication/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useSpaceStore } from "@/stores/SpaceStore";
import { usePostStore } from "@/stores/PostStore";
const spaceStore = useSpaceStore();
const postStore = usePostStore();
const postStore = usePostStore();
const username = ref('');
Expand Down Expand Up @@ -54,6 +54,7 @@ function recover(){

<v-form
class="d-flex justify-center align-center"
@submit.prevent="login"
>
<v-container fill-height>
<v-row
Expand All @@ -80,7 +81,7 @@ function recover(){

<v-text-field
v-model="username"
label="Username or Email"
label="Username"
required
/>

Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/Authentication/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async function register() {
<template>
<v-form
class="d-flex justify-center align-center"
@submit.prevent="register"
>
<v-container fill-height>
<v-row
Expand Down Expand Up @@ -105,6 +106,7 @@ async function register() {
v-model="name"
label="Name"
required
@keyup.enter="register"
>
<v-tooltip
activator="parent"
Expand Down Expand Up @@ -135,7 +137,7 @@ async function register() {
class="mt-2 mb-2 mx-2"
block
>
Sign in with passkey
Register with passkey
</v-btn>
</v-col>

Expand Down

0 comments on commit 7d7eefd

Please sign in to comment.