-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update dependencies * proposal route rules * nuxt og image update * route rules * add latest directus version * explain pagefilter * fix access token for portal search * add password to login form * fix dynamic user name * portal user avatar fix * remove base render route * fix lockfile * svg cleanup * lint fixes * type fixes * form type * form cleanup * lint fixes * typescript fixes
- Loading branch information
1 parent
ac21604
commit 38a319c
Showing
69 changed files
with
2,976 additions
and
3,664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,7 @@ | |
color="rose" | ||
variant="outline" | ||
icon="material-symbols:warning-rounded" | ||
> | ||
Error: {{ error }} | ||
</UAlert> | ||
/> | ||
|
||
<form class="grid gap-4" @submit.prevent="attemptLogin"> | ||
<UFormGroup label="Email" required> | ||
|
@@ -25,6 +23,17 @@ | |
placeholder="[email protected]" | ||
/> | ||
</UFormGroup> | ||
<UFormGroup label="Password" required> | ||
<UInput | ||
v-model="credentials.password" | ||
type="password" | ||
:disabled="loading" | ||
size="lg" | ||
name="email" | ||
label="Password" | ||
placeholder="Your Password" | ||
/> | ||
</UFormGroup> | ||
<UButton | ||
type="submit" | ||
:loading="loading" | ||
|
@@ -36,15 +45,16 @@ | |
/> | ||
</form> | ||
|
||
<div class="mt-6"> | ||
<!-- @TODO Remove password once magic link authentication is added --> | ||
<!-- <div class="mt-6"> | ||
<VText> | ||
<UIcon name="material-symbols:info-rounded" class="mr-2" /> | ||
<span>What about a password?</span> | ||
</VText> | ||
<VText text-color="light" size="xs" class="mt-2"> | ||
Not needed 😃. Just enter your email above and we'll send you a magic link to login to your dashboard. | ||
</VText> | ||
</div> | ||
</div> --> | ||
</div> | ||
</template> | ||
|
||
|
@@ -53,6 +63,7 @@ const { login } = useDirectusAuth(); | |
const loading = ref(false); | ||
const error = ref(null); | ||
// You'll want to remove these preset credentials before you deploy your site | ||
const credentials = reactive({ | ||
email: '[email protected]', | ||
password: 'password', | ||
|
@@ -64,7 +75,7 @@ async function attemptLogin() { | |
error.value = null; | ||
try { | ||
// Be careful when using the login function because you have to pass the email and password as arguments. | ||
// Be careful when using the login function because you have to pass the email and password as separate arguments instead of an object. | ||
await login(email, password); | ||
} catch (err) { | ||
error.value = err.message; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.