This commit is contained in:
les
2019-10-23 01:17:22 +02:00
parent 94b8027de4
commit 53eb009612
8 changed files with 13 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<template lang='pug'>
el-dialog(:visible='show' @close='close'
el-dialog(:visible='show' @close='close' :close-on-click-modal='false'
append-to-body :title="$t('common.login')")
p(v-html="$t('login.description')")

View File

@@ -1,5 +1,5 @@
<template lang='pug'>
el-dialog(:visible='show' @close='close'
el-dialog(:visible='show' @close='close' :close-on-click-modal='false'
append-to-body :title="$t('common.register')")
p(v-html="$t('register.description')")
@@ -18,7 +18,7 @@
el-input.mb-2(v-model='user.description' type="textarea" rows='3' :placeholder="$t('common.description')")
span(slot='footer')
el-button(plain type="success" :disabled='disabled' @click='register') {{$t('common.send')}} <v-icon :name='loading?"circle-notch":"chevron-right"' :spin='loading'/>
el-button(plain type="success" :disabled='disabled' @click='register') {{$t('common.send')}} <v-icon name='chevron-right'/>
</template>
<script>

View File

@@ -5,11 +5,11 @@
},
"confirm": {
"subject": "Puoi iniziare a pubblicare eventi",
"content": "Ciao, il tuo account su <a href='{{config.baseurl}}'>{{config.title}}</a> è stato creato."
"content": "Ciao, il tuo account su <a href='{{config.baseurl}}'>{{config.title}}</a> è stato confermato. Scrivici a {{config.admin}} per qualsiasi informazione e fai a modino."
},
"user_confirm": {
"subject": "Puoi iniziare a pubblicare eventi",
"content": "Ciao, il tuo account su <a href='{{config.baseurl}}'>{{config.title}}</a> è stato creato. <a href='{{config.baseurl}}/user_confirm/{{user.recover_code}}'>Confermalo</a>."
"content": "Ciao, il tuo account su <a href='{{config.baseurl}}'>{{config.title}}</a> è stato creato. <a href='{{config.baseurl}}/user_confirm/{{user.recover_code}}'>Confermalo e scegli una password</a>."
},
"recover": {
"subject": "Recupero password",

View File

@@ -179,7 +179,7 @@ Adding this link to your feed reader will keep you up to date.`,
confirm: {
title: 'User confirmation',
not_valid: 'Mmmmm something goes wrong.',
valid: 'Your account is confirmed, you can <a href="/login">log in</a>.'
valid: 'Your account is confirmed, you can <a href="/?ref=login">log in</a>.'
},
ordinal: {

View File

@@ -184,7 +184,7 @@ export default {
confirm: {
title: 'Conferma utente',
not_valid: 'Mmmmm qualcosa è andato storto.',
valid: 'Il tuo account è stato confermato, ora puoi <a href="/login">entrare</a>'
valid: 'Il tuo account è stato confermato, ora puoi <a href="/?ref=login">entrare</a>'
},
ordinal: {

View File

@@ -1,5 +1,5 @@
<template lang="pug">
el-dialog(:visible='true' @close="$router.push('/')")
el-dialog(:visible='true' @close="$router.push('/')" :close-on-click-modal='false')
template(slot='title')
h4 <nuxt-link to='/'><img src='/favicon.ico'/></nuxt-link> {{$t('common.recover_password')}}
div(v-if='valid')
@@ -35,7 +35,7 @@ export default {
type: 'success',
message: this.$t('common.password_updated')
})
this.$router.replace('/login')
this.$router.replace('/?ref=login')
} catch (e) {
Message({
showClose: true,

View File

@@ -1,9 +1,7 @@
<template lang="pug">
el-card
nuxt-link.float-right(to='/')
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
el-main
h4 <nuxt-link to='/'><img src='/favicon.ico'/></nuxt-link> {{$t('common.set_password')}}
h5 <img src='/favicon.ico'/> {{$t('common.set_password')}}
div(v-if='valid')
el-form
el-form-item {{$t('common.new_password')}}
@@ -40,7 +38,7 @@ export default {
type: 'success',
message: this.$t('common.password_updated')
})
this.$router.replace('/login')
this.$router.replace('/?ref=login')
} catch (e) {
Message({
showClose: true,

View File

@@ -39,7 +39,7 @@ export default {
type: 'success',
message: this.$t('common.password_updated')
})
this.$router.replace('/login')
this.$router.replace('/?ref=login')
} catch (e) {
Message({
showClose: true,