feat: add login link to reset-password page
This commit is contained in:
parent
5bd307451d
commit
688001a482
1 changed files with 6 additions and 0 deletions
|
@ -11,6 +11,9 @@
|
||||||
<Button type="submit" text="Submit" variant="normal" />
|
<Button type="submit" text="Submit" variant="normal" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<div>
|
||||||
|
Already have an account? <NuxtLink :href="loginUrl">Log in</NuxtLink>!
|
||||||
|
</div>
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -19,6 +22,9 @@ import Button from '~/components/UserInterface/Button.vue';
|
||||||
|
|
||||||
const query = useRoute().query as Record<string, string>;
|
const query = useRoute().query as Record<string, string>;
|
||||||
const searchParams = new URLSearchParams(query);
|
const searchParams = new URLSearchParams(query);
|
||||||
|
|
||||||
|
const loginUrl = `/login?${searchParams}`;
|
||||||
|
|
||||||
const token = ref(searchParams.get("token"))
|
const token = ref(searchParams.get("token"))
|
||||||
|
|
||||||
if (!token.value) await navigateTo("/login");
|
if (!token.value) await navigateTo("/login");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue