Authentification Token

This commit is contained in:
2024-11-14 15:32:28 +01:00
parent ae577dc023
commit 86acedc8aa
10 changed files with 283 additions and 58 deletions

View File

@@ -11,7 +11,7 @@ const router = useRouter()
async function startLogin() {
accountStore.login()
.then(result => {
if (accountStore.userAccount.id != undefined) {
if (accountStore.userAccountToken != "") {
router.push("/account/home")
}
})
@@ -30,6 +30,7 @@ async function startLogin() {
:label="$t('account.userData.username')"
prepend-icon="mdi-account"
v-model="accountStore.loginData.username"
variant="outlined"
clearable
/>
</v-col>
@@ -41,6 +42,7 @@ async function startLogin() {
:label="$t('account.userData.password')"
prepend-icon="mdi-key"
type="password"
variant="outlined"
v-model="accountStore.loginData.password"
clearable
/>

View File

@@ -31,6 +31,8 @@ async function registerAccount() {
prepend-icon="mdi-account"
v-model="accountStore.registerData.username"
clearable
hide-details
variant="outlined"
:rules="getStringRules()"
/>
</v-col>
@@ -44,6 +46,8 @@ async function registerAccount() {
type="password"
v-model="accountStore.registerData.password"
clearable
hide-details
variant="outlined"
:rules="getPasswordRules()"
/>
</v-col>
@@ -56,6 +60,8 @@ async function registerAccount() {
prepend-icon="mdi-mail"
v-model="accountStore.registerData.email"
:rules="getEmailRules()"
variant="outlined"
hide-details
clearable
/>
</v-col>