rename signin / signup to login / register
This commit is contained in:
@@ -13,6 +13,9 @@ definePageMeta({
|
||||
layout: 'auth',
|
||||
middleware: ['not-authenticated'],
|
||||
});
|
||||
useHead({
|
||||
title: 'Login - Warren',
|
||||
});
|
||||
|
||||
// TODO: Get this from the backend
|
||||
const OPEN_ID = false;
|
||||
@@ -50,9 +53,9 @@ function onKeyDown(e: KeyboardEvent) {
|
||||
<template>
|
||||
<Card class="w-full max-w-sm">
|
||||
<CardHeader>
|
||||
<CardTitle class="text-2xl">Sign in</CardTitle>
|
||||
<CardTitle class="text-2xl">Login</CardTitle>
|
||||
<CardDescription>
|
||||
Enter your email and password to sign in to your account.
|
||||
Enter your email and password to log in to your account.
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent class="grid gap-4">
|
||||
@@ -82,13 +85,13 @@ function onKeyDown(e: KeyboardEvent) {
|
||||
</CardContent>
|
||||
<CardFooter class="flex-col gap-2">
|
||||
<Button class="w-full" :disabled="!inputValid" @click="submit"
|
||||
>Sign in</Button
|
||||
>Log in</Button
|
||||
>
|
||||
<Button class="w-full" variant="outline" :disabled="!OPEN_ID"
|
||||
>OpenID Connect</Button
|
||||
>
|
||||
<NuxtLink to="/signup" class="w-full">
|
||||
<Button class="w-full" variant="ghost">Sign up instead</Button>
|
||||
<NuxtLink to="/register" class="w-full">
|
||||
<Button class="w-full" variant="ghost">Register instead</Button>
|
||||
</NuxtLink>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
@@ -13,6 +13,9 @@ definePageMeta({
|
||||
layout: 'auth',
|
||||
middleware: ['not-authenticated'],
|
||||
});
|
||||
useHead({
|
||||
title: 'Register - Warren',
|
||||
});
|
||||
|
||||
const registering = ref(false);
|
||||
const username = ref('');
|
||||
@@ -36,7 +39,7 @@ async function submit() {
|
||||
);
|
||||
|
||||
if (success) {
|
||||
await navigateTo({ path: '/signin' });
|
||||
await navigateTo({ path: '/login' });
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -47,7 +50,7 @@ async function submit() {
|
||||
<template>
|
||||
<Card class="w-full max-w-sm">
|
||||
<CardHeader>
|
||||
<CardTitle class="text-2xl">Sign up</CardTitle>
|
||||
<CardTitle class="text-2xl">Register</CardTitle>
|
||||
<CardDescription>Create a new user account</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent class="grid gap-4">
|
||||
@@ -89,10 +92,10 @@ async function submit() {
|
||||
class="w-full"
|
||||
:disabled="!allFieldsValid || registering"
|
||||
@click="submit"
|
||||
>Sign up</Button
|
||||
>Register</Button
|
||||
>
|
||||
<NuxtLink to="/signin" class="w-full">
|
||||
<Button class="w-full" variant="ghost">Sign in instead</Button>
|
||||
<NuxtLink to="/login" class="w-full">
|
||||
<Button class="w-full" variant="ghost">Log in instead</Button>
|
||||
</NuxtLink>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
Reference in New Issue
Block a user