Skip to content

Commit

Permalink
Merge pull request #29 from steks89/patch-1
Browse files Browse the repository at this point in the history
Refactoring url() to be using route() instead
  • Loading branch information
zacksmash authored Sep 27, 2022
2 parents ed7ef08 + 60a395d commit 460cba0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@if(! auth()->user()->two_factor_secret)
{{-- Enable 2FA --}}
<form method="POST" action="{{ url('user/two-factor-authentication') }}">
<form method="POST" action="{{ route('two-factor.enable') }}">
@csrf

<button type="submit">
Expand All @@ -9,7 +9,7 @@
</form>
@else
{{-- Disable 2FA --}}
<form method="POST" action="{{ url('user/two-factor-authentication') }}">
<form method="POST" action="{{ route('two-factor.disable') }}">
@csrf
@method('DELETE')

Expand Down Expand Up @@ -41,7 +41,7 @@
</div>

{{-- Regenerate 2FA Recovery Codes --}}
<form method="POST" action="{{ url('user/two-factor-recovery-codes') }}">
<form method="POST" action="{{ route('two-factor.recovery-codes') }}">
@csrf

<button type="submit">
Expand Down

0 comments on commit 460cba0

Please sign in to comment.