webfinger / AP user
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
el-card
|
||||
nuxt-link.float-right(to='/')
|
||||
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
|
||||
|
||||
h5 {{$t('common.login')}}
|
||||
el-form(v-loading='loading')
|
||||
p(v-html="$t('login.description')")
|
||||
|
||||
el-input.mb-2(v-model='email' type='email' name='email'
|
||||
:placeholder='$t("common.email")' autocomplete='email' ref='email')
|
||||
v-icon(name='user' slot='prepend')
|
||||
v-icon(name='envelope' slot='prepend')
|
||||
|
||||
el-input.mb-1(v-model='password' @keyup.enter.native="submit" name='password'
|
||||
type='password' :placeholder='$t("common.password")')
|
||||
|
||||
@@ -2,14 +2,19 @@
|
||||
el-card
|
||||
|
||||
nuxt-link.float-right(to='/')
|
||||
v-icon(name='times' color='red')
|
||||
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
|
||||
h5 {{$t('common.register')}}
|
||||
|
||||
el-form(@submit.native.prevent='register' method='POST' action='/api/user/register')
|
||||
p(v-html="$t('register.description')")
|
||||
|
||||
el-input.mb-2(v-model='user.username' type='text' name='username'
|
||||
:placeholder='$t("common.username")')
|
||||
v-icon(name='user' slot='prepend')
|
||||
|
||||
el-input.mb-2(ref='email' v-model='user.email' type='email' required
|
||||
:placeholder='$t("common.email")' autocomplete='email' name='email')
|
||||
span(slot='prepend') @
|
||||
v-icon(name='envelope' slot='prepend')
|
||||
|
||||
el-input.mb-2(v-model='user.password' type="password" placeholder="Password" name='password' required)
|
||||
v-icon(name='lock' slot='prepend')
|
||||
@@ -34,6 +39,11 @@ export default {
|
||||
user: { }
|
||||
}
|
||||
},
|
||||
head () {
|
||||
return {
|
||||
title: this.settings.title + ' - ' + this.$t('common.register')
|
||||
}
|
||||
},
|
||||
validate ({store}) {
|
||||
return store.state.settings.allow_registration
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user