fix submit in login
This commit is contained in:
@@ -1,22 +1,22 @@
|
|||||||
<template lang='pug'>
|
<template lang='pug'>
|
||||||
v-row.mt-5(align='center' justify='center')
|
v-row.mt-5(align='center' justify='center')
|
||||||
v-col(cols='12' md="6" lg="5" xl="4")
|
v-col(cols='12' md="6" lg="5" xl="4")
|
||||||
|
v-form(v-model='valid' ref='form' lazy-validation @submit.prevent='submit')
|
||||||
|
v-card
|
||||||
|
v-card-title {{$t('common.login')}}
|
||||||
|
v-card-subtitle(v-text="$t('login.description')")
|
||||||
|
|
||||||
v-card
|
v-card-text
|
||||||
v-card-title {{$t('common.login')}}
|
v-text-field(v-model='email' type='email'
|
||||||
v-card-subtitle(v-text="$t('login.description')")
|
validate-on-blur
|
||||||
|
:rules='$validators.email' autofocus
|
||||||
|
:placeholder='$t("common.email")'
|
||||||
|
ref='email')
|
||||||
|
|
||||||
v-card-text
|
v-text-field(v-model='password'
|
||||||
v-form(v-model='valid' ref='form' lazy-validation)
|
:rules='$validators.password'
|
||||||
v-text-field(v-model='email' type='email'
|
type='password'
|
||||||
:rules='$validators.email' autofocus
|
:placeholder='$t("common.password")')
|
||||||
:placeholder='$t("common.email")'
|
|
||||||
ref='email')
|
|
||||||
|
|
||||||
v-text-field(v-model='password'
|
|
||||||
:rules='$validators.password'
|
|
||||||
type='password'
|
|
||||||
:placeholder='$t("common.password")')
|
|
||||||
|
|
||||||
v-card-actions
|
v-card-actions
|
||||||
v-btn(text
|
v-btn(text
|
||||||
@@ -29,13 +29,11 @@
|
|||||||
v-btn(v-if='settings.allow_registration'
|
v-btn(v-if='settings.allow_registration'
|
||||||
to='/register'
|
to='/register'
|
||||||
text
|
text
|
||||||
tabindex="1"
|
|
||||||
color='orange') {{$t('login.not_registered')}}
|
color='orange') {{$t('login.not_registered')}}
|
||||||
|
|
||||||
v-btn(color='success'
|
v-btn(color='success'
|
||||||
tabindex="0"
|
type='submit'
|
||||||
:disabled='!valid || loading' :loading='loading'
|
:disabled='!valid || loading' :loading='loading') {{$t('common.login')}}
|
||||||
@click='submit') {{$t('common.login')}}
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user