enable forgot password link in settings

This commit is contained in:
negue
2023-02-05 19:27:26 +01:00
parent bec75c6e12
commit b5be137a8d
3 changed files with 7 additions and 6 deletions
@@ -731,6 +731,8 @@ export default {
},
},
mounted () {
this.forgotPassword = this.$route.path.startsWith('/forgot-password');
hello.init({
google: process.env.GOOGLE_CLIENT_ID, // eslint-disable-line
});
@@ -8,12 +8,9 @@
v-if="showForgetPassword"
class="forgot-password"
>
<a
class="edit-link"
@click.prevent=""
>
{{ $t('forgotPassword') }} TODO
</a>
<router-link to="/forgot-password">
{{ $t('forgotPassword') }}
</router-link>
</div>
</div>
<div class="form-group">
+2
View File
@@ -93,6 +93,8 @@ const router = new VueRouter({
{ name: 'logout', path: '/logout', component: Logout },
{
name: 'resetPassword', path: '/reset-password', component: RegisterLoginReset, meta: { requiresLogin: false },
}, {
name: 'forgotPassword', path: '/forgot-password', component: RegisterLoginReset, meta: { requiresLogin: false },
},
{ name: 'tasks', path: '/', component: UserTasks },
{