Fix login
This commit is contained in:
parent
d6381f60c7
commit
1b3659b50e
6 changed files with 37 additions and 22 deletions
|
|
@ -1,30 +1,31 @@
|
|||
<template>
|
||||
<div class="d-flex justify-center">
|
||||
<v-card class="ma-8 pa-4" style="min-width: 400px; max-width: 400px" flat>
|
||||
<v-card-title primary-title>
|
||||
<h4>Login</h4>
|
||||
</v-card-title>
|
||||
<div class="d-flex justify-center login-root">
|
||||
<div color="rgba(255,255,255,0.1)">
|
||||
<h4>Login</h4>
|
||||
<v-form v-model="isValid">
|
||||
<v-text-field
|
||||
prepend-icon="mdi-account"
|
||||
v-model="user.username"
|
||||
label="Username"
|
||||
color="black"
|
||||
background-color="white"
|
||||
outlined
|
||||
:rules="[(v) => !!v || 'Username is required']"
|
||||
:error="userErrorMessage != null"
|
||||
:error-messages="userErrorMessage"
|
||||
required
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
prepend-icon="mdi-lock"
|
||||
v-model="user.password"
|
||||
label="Password"
|
||||
color="black"
|
||||
background-color="white"
|
||||
outlined
|
||||
type="password"
|
||||
:rules="[(v) => !!v || 'Password is required']"
|
||||
:error="passErrorMessage != null"
|
||||
:error-messages="passErrorMessage"
|
||||
required
|
||||
></v-text-field>
|
||||
<v-card-actions>
|
||||
<v-btn
|
||||
:disabled="!isValid || loading"
|
||||
primary
|
||||
|
|
@ -34,9 +35,8 @@
|
|||
:loading="loading"
|
||||
>Login</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
</v-form>
|
||||
</v-card>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -119,4 +119,8 @@ export default {
|
|||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import "@/assets/css/login.scss";
|
||||
</style>
|
||||
|
|
@ -7,12 +7,8 @@
|
|||
<v-icon v-text="room.icon"></v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title
|
||||
v-text="room.summary.info.title"
|
||||
></v-list-item-title>
|
||||
<v-list-item-content
|
||||
>Topic: {{ room.topic }}</v-list-item-content
|
||||
>
|
||||
<v-list-item-title>{{ room.summary.info.title }}</v-list-item-title>
|
||||
<v-list-item-subtitle>{{ room.topic }}</v-list-item-subtitle>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</v-list-item-group>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue