-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
8b9d192
commit 3291900
Showing
18 changed files
with
50 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { useForm } from '@inertiajs/react' | ||
import { Button, PasswordInput } from '@mantine/core' | ||
import AuthLayout from '~/views/layouts/auth' | ||
|
||
export default function AuthPasswordConfirmPage() { | ||
const form = useForm<{ password: string }>({ | ||
password: '', | ||
}) | ||
|
||
return ( | ||
<AuthLayout | ||
title="Confirm Password" | ||
intro={ | ||
<p> | ||
This is a secure area of the application. Please confirm your password | ||
before continuing. | ||
</p> | ||
} | ||
> | ||
<form | ||
className="flex w-full flex-col items-center justify-end gap-10" | ||
onSubmit={(event) => { | ||
event.preventDefault() | ||
|
||
form.post(route('password.confirm'), { | ||
onFinish: () => form.reset('password'), | ||
}) | ||
}} | ||
> | ||
<div className="w-full"> | ||
<PasswordInput | ||
name="password" | ||
label="Password" | ||
placeholder="Password" | ||
error={form.errors.password} | ||
value={form.data.password} | ||
onChange={(event) => { | ||
form.setData('password', event.target.value) | ||
}} | ||
/> | ||
</div> | ||
<Button type="submit" loading={form.processing} fullWidth> | ||
Confirm | ||
</Button> | ||
</form> | ||
</AuthLayout> | ||
) | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.