-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
antoine
committed
Oct 12, 2023
1 parent
986f8e7
commit 0ab16b6
Showing
28 changed files
with
260 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script setup lang="ts"> | ||
import AuthLayout from "@/Layouts/AuthLayout.vue"; | ||
import Title from "@/components/Title.vue"; | ||
import { __ } from "sharp/utils/i18n"; | ||
import { useForm } from "@inertiajs/vue3"; | ||
import TextInput from "@sharp/form/src/components/fields/text/TextInput.vue"; | ||
import { Button } from "@sharp/ui"; | ||
const props = defineProps<{ | ||
status: string, | ||
}>(); | ||
const form = useForm({ | ||
email: '', | ||
}); | ||
</script> | ||
|
||
<template> | ||
<AuthLayout> | ||
<Title> | ||
{{ __('sharp::pages/auth/forgot-password.title') }} | ||
</Title> | ||
|
||
<div class="text-sm text-gray-700 mb-4"> | ||
{{ __('sharp::pages/auth/forgot-password.description') }} | ||
</div> | ||
|
||
<form @submit.prevent="form.post(route('code16.sharp.password.reset.post'))"> | ||
<TextInput | ||
id="email" | ||
v-model="form.email" | ||
:has-error="!!form.errors.email" | ||
:placeholder="__('sharp::pages/auth/forgot-password.email_field')" | ||
autofocus | ||
/> | ||
<template v-if="form.errors.email"> | ||
<p class="mt-2 text-sm text-red-600"> | ||
{{ form.errors.email }} | ||
</p> | ||
</template> | ||
|
||
<div class="mt-4"> | ||
<Button class="w-full" type="submit"> | ||
{{ __('sharp::pages/auth/forgot-password.submit') }} | ||
</Button> | ||
</div> | ||
</form> | ||
</AuthLayout> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<script setup lang="ts"> | ||
import AuthLayout from "@/Layouts/AuthLayout.vue"; | ||
import Title from "@/components/Title.vue"; | ||
import { __ } from "sharp/utils/i18n"; | ||
import { useForm } from "@inertiajs/vue3"; | ||
import TextInput from "@sharp/form/src/components/fields/text/TextInput.vue"; | ||
const props = defineProps<{ | ||
token: string, | ||
email: string, | ||
}>(); | ||
const form = useForm({ | ||
token: props.token, | ||
email: props.email, | ||
password: '', | ||
password_confirmation: '', | ||
}); | ||
</script> | ||
|
||
<template> | ||
<AuthLayout> | ||
<Title> | ||
{{ __('sharp::auth.reset_password.page_title') }} | ||
</Title> | ||
|
||
<template #title> | ||
{{ __('sharp::auth.reset_password.page_title') }} | ||
</template> | ||
|
||
<form @submit.prevent="form.post(route('code16.sharp.password.reset.post'))"> | ||
<TextInput | ||
id="email" | ||
|
||
v-model="form.email" | ||
:has-error="!!form.errors.email" | ||
autofocus | ||
/> | ||
</form> | ||
</AuthLayout> | ||
</template> |
2 changes: 1 addition & 1 deletion
2
resources/lang/de/login.php → resources/lang/de/pages/auth/login.php
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
return [ | ||
'reset' => 'Das Passwort wurde zurückgesetzt!', | ||
'sent' => 'Passworterinnerung wurde gesendet! (Wenn ein Benutzer mit dieser E-Mail-Adresse verknüpft ist)', | ||
'throttled' => 'Bitte warten Sie, bevor Sie es erneut versuchen.', | ||
'token' => 'Der Passwort-Wiederherstellungs-Schlüssel ist ungültig oder abgelaufen.', | ||
'user' => 'Es konnte leider kein Nutzer mit dieser E-Mail-Adresse gefunden werden.', | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
return [ | ||
'title' => 'Forgot password', | ||
'description' => 'Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.', | ||
'email_field' => 'Email', | ||
'submit' => 'Email password reset link', | ||
]; |
3 changes: 2 additions & 1 deletion
3
resources/lang/en/login.php → resources/lang/en/pages/auth/login.php
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?php | ||
|
||
return [ | ||
'login_page_title' => 'Login', | ||
'title' => 'Login', | ||
'login_field' => 'login', | ||
'password_field' => 'password', | ||
'code_field' => 'code', | ||
'remember' => 'Remember me', | ||
'button' => 'Login', | ||
'forgot_password_link' => 'Forgot password?', | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
'title' => 'Reset password', | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
return [ | ||
'reset' => 'Your password has been reset!', | ||
'sent' => 'We have emailed your password reset link! (If an user is associated with this email address)', | ||
'throttled' => 'Please wait before retrying.', | ||
'token' => 'This password reset token is invalid.', | ||
'user' => "We can't find a user with that email address.", | ||
]; |
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
2 changes: 1 addition & 1 deletion
2
resources/lang/es/login.php → resources/lang/es/pages/auth/login.php
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
return [ | ||
'reset' => 'Su contraseña ha sido restablecida.', | ||
'sent' => 'Le hemos enviado por correo electrónico el enlace para restablecer su contraseña. (Si un usuario está asociado con esta dirección de correo electrónico)', | ||
'throttled' => 'Por favor espere antes de intentar de nuevo.', | ||
'token' => 'El token de restablecimiento de contraseña es inválido.', | ||
'user' => 'No encontramos ningún usuario con ese correo electrónico.', | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
'title' => 'Mot de passe oublié', | ||
]; |
3 changes: 2 additions & 1 deletion
3
resources/lang/fr/login.php → resources/lang/fr/pages/auth/login.php
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<?php | ||
|
||
return [ | ||
'login_page_title' => 'Connexion', | ||
'title' => 'Connexion', | ||
'login_field' => 'identifiant', | ||
'password_field' => 'mot de passe', | ||
'code_field' => 'code', | ||
'remember' => 'Rester connecté', | ||
'button' => 'Connexion', | ||
'forgot_password_link' => 'Mot de passe oublié ?', | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
'title' => 'Réinitialiser le mot de passe', | ||
]; |
2 changes: 1 addition & 1 deletion
2
resources/lang/ko-kr/login.php → resources/lang/ko-kr/pages/auth/login.php
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
2 changes: 1 addition & 1 deletion
2
resources/lang/nl/login.php → resources/lang/nl/pages/auth/login.php
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
2 changes: 1 addition & 1 deletion
2
resources/lang/pt-br/login.php → resources/lang/pt-br/pages/auth/login.php
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.