Modernize Blade directives

Laravel offers many built-in Blade directives, including: `@auth`, `@guest` ,`@csrf`, `@method`, `@json`, and more.

Review the [Blade][1] documentation for more details.

[1]: https://laravel.com/docs/blade
This commit is contained in:
Shift
2023-03-30 14:15:03 +00:00
parent 4231473bfd
commit 810b3cd373
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -32,7 +32,7 @@
@if(!($data['user']->passwordSecurity))
<form class="form-horizontal" method="POST" action="{{ route('generate2faSecret') }}">
{{ csrf_field() }}
@csrf
<div class="form-group">
<div class="col-md-6 col-md-offset-4">
<button type="submit" class="btn btn-primary">
@@ -47,7 +47,7 @@
<br/><br/>
<strong>2.Enter the pin the code to Enable 2FA</strong><br/><br/>
<form class="form-horizontal" method="POST" action="{{ route('enable2fa') }}">
{{ csrf_field() }}
@csrf
<div class="form-group{{ $errors->has('verify-code') ? ' has-error' : '' }}">
<label for="verify-code" class="col-md-4 control-label">Authenticator Code</label>
@@ -91,7 +91,7 @@
</div>
<div class="col-md-6 col-md-offset-5">
{{ csrf_field() }}
@csrf
<button type="submit" class="btn btn-primary ">Disable 2FA</button>
</div>
</form>
+1 -1
View File
@@ -22,7 +22,7 @@
<strong>Enter the pin from Google Authenticator Enable 2FA</strong><br/><br/>
<form class="form-horizontal" action="{{ route('2faVerify') }}" method="POST">
{{ csrf_field() }}
@csrf
<div class="form-group{{ $errors->has('one_time_password-code') ? ' has-error' : '' }}">
<label for="one_time_password" class="col-md-4 control-label">One Time Password</label>
<div class="col-md-6">