Commit 243b25d
Add Two Factor Authentication for Vue Starter Kit (#176)
* feat: implement two-factor authentication functionality and UI enhancements (#147)
* refactor: extract two-factor authentication logic to composable for better reusability and cleanup (#148)
* refactor: move two-factor authentication logic from composable to page component and simplify implementation logic (#149)
* refactor: simplify two-factor authentication logic with form components and improve conditional rendering
* feat: add PinInput component and update TwoFactor UI with reka-ui 2.4.1 enhancements
* refactor: replace reka-ui PinInput with custom implementation and optimize TwoFactor UI components
* refactor: revert unneeded changes
* refactor: simplify two-factor authentication
* feat: update two-factor authentication to delay login until confirmation
* wip
* wip
* refactor: centralize two-factor authentication logic, improve UI state and
* refactor: streamline TwoFactor components, simplify form handling, and improve UI logic consistency
* refactor: centralize clipboard and two-factor authentication logic, enhance state management, and optimize TwoFactor UI components
* refactor: enhance TwoFactor UI components with reusable Card layout, improve recovery codes visibility toggle, and standardize spacing
* fix: use `hasEnabledTwoFactorAuthentication` for improved logic clarity in session handling
* refactor: streamline TwoFactor UI logic, improve recovery mode toggle, and standardize naming conventions
* refactor: simplify TwoFactor test structure, replace manual assertions with Inertia assertions, and improve naming consistency
* chore: add newline to end of TwoFactorAuthenticationTest file
* refactor: enhance TwoFactor UI with conditional enable button logic, refine recovery codes handling
* refactor: enhance TwoFactor UI with conditional enable button logic, refine recovery codes handling
* refactor: inline two-factor authentication composable logic into TwoFactor component to simplify structure
* refactor: remove unused `ref` and `focus` logic from Input component to simplify structure
* refactor: enhance two-factor authentication flow with middleware checks, improved UI spacing, and expanded test coverage
* refactor: simplify TwoFactor component with async/await, refine recovery codes handling, and standardize UI consistency
* refactor: reset setup data on modal close, improve form handling, and simplify PinInput structure
* refactor: add reusable reset methods for reactive states, simplify TwoFactor logic, and enhance PinInput handling
* fix: formatting issue
* fix: conditionally apply password confirmation middleware
* chore: update lock file
* fix: make component reactive
* wip
* refactor: split the component
* refactor: use composable
* refactor: remove redundant type definition
* refactor: remove custom useClipboard composable
* refactor: simplify recovery codes visibility logic
* fix: merge issues
* refactor: update two-factor authentication forms to use route helpers
* refactor: test
* refactor: improve two-factor authentication tests and enhance readability
* refactor: update two-factor authentication tests for consistency and improve code readability
* wip
* Move conditional middleware from route to controller
* Fix tests to be consistent based on config
* Remove comments
* refactor: simplify toggleRecoveryCodesVisibility function signature
* remove duplicate type defination
* fix type definition
* More Fixes
* fix types
* fix wayfinder routes
* refactor ui to use defineModal and remove unnecessary things
* remove unneeded async attribute
* remove redundant attribute action
* fix: finish state
* fix: merge conflicts
* state cleanup
* fix typo
* use arrow functions
* Move trait to form-request
* Formatting
* various formatting tweaks
* Update TwoFactorSetupModal.vue
* Bump Fortify
* Use ensure state is valid from Fortify
* Refactor TwoFactorAuthenticationRequest namespace
* Formatting
* Formatting
* Refactor Test
* formatting
* Fix Text Jarring Issue
* Add hasSetupData to avoid enabling 2FA again
* Update useTwoFactorAuth.ts
---------
Co-authored-by: Taylor Otwell <[email protected]>1 parent 08df299 commit 243b25d
File tree
34 files changed
+1261
-1500
lines changed- app
- Http
- Controllers
- Auth
- Settings
- Requests
- Auth
- Settings
- Models
- Providers
- bootstrap
- config
- database/migrations
- resources/js
- components
- ui
- badge
- pin-input
- composables
- layouts/settings
- pages
- auth
- settings
- routes
- tests/Feature
- Auth
- Settings
34 files changed
+1261
-1500
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
33 | 45 | | |
34 | 46 | | |
35 | 47 | | |
| |||
Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | | - | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments