diff --git a/components/admin/Users.vue b/components/admin/Users.vue index 30e15de9..3ad6a164 100644 --- a/components/admin/Users.vue +++ b/components/admin/Users.vue @@ -37,6 +37,7 @@ v-icon(v-if='item.is_active' color='success') mdi-check v-icon(v-else color='warning') mdi-close template(v-slot:item.actions='{item}') + v-btn(v-if='item.recover_code' text small :to='`/user_confirm/${item.recover_code}`') {{$t('common.confirm')}} v-btn(text small @click='toggle(item)' :color='item.is_active?"warning":"success"') {{item.is_active?$t('common.disable'):$t('common.enable')}} v-btn(text small @click='toggleAdmin(item)' diff --git a/pages/recover/_code.vue b/pages/recover/_code.vue index 54119bd1..254465b9 100644 --- a/pages/recover/_code.vue +++ b/pages/recover/_code.vue @@ -3,32 +3,32 @@ v-container v-row.mt-5(align='center' justify='center') v-col(cols='12' md="6" lg="5" xl="4") v-card - v-card-title {{settings.title}} - {{$t('common.recover_password')}} - v-card-text - div(v-if='valid') + v-card-title {{$t('common.recover_password')}} + template(v-if='user') + v-card-subtitle {{user.email}} + v-card-text v-text-field(type='password' :rules="$validators.password" autofocus :placeholder='$t("common.new_password")' v-model='new_password') - div(v-else) {{$t('recover.not_valid_code')}} + div(v-else) {{$t('recover.not_valid_code')}} v-card-actions v-spacer - v-btn(v-if='valid' color='primary' @click='change_password') {{$t('common.send')}} + v-btn(v-if='user' text color='primary' @click='change_password') {{$t('common.send')}}