mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user