Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 6e248ff

Browse files
committed
Update README
1 parent 847c956 commit 6e248ff

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ and
9292
/**
9393
* Log out the user and start the two factor authentication state.
9494
*
95-
* @param Request $request
96-
* @param User $user
95+
* @param \Illuminate\Http\Request $request
96+
* @param \App\User $user
9797
* @return \Illuminate\Http\Response
9898
*/
9999
private function startTwoFactorAuthProcess(Request $request, $user)
@@ -115,7 +115,7 @@ and lastly
115115
* Provider specific two-factor authentication logic. In the case of MessageBird
116116
* we just want to send an authentication token via SMS.
117117
*
118-
* @param User $user
118+
* @param \App\User $user
119119
* @return mixed
120120
*/
121121
private function registerUserAndSendToken(User $user)
@@ -172,12 +172,11 @@ class TwoFactorAuthController extends Controller
172172

173173
{{-- Add this block to show an error message in case of an expired token or user lockout --}}
174174
@if ($errors->has('token'))
175-
<div class="form-group has-error">
176-
<div class="col-xs-12">
177-
<span class="help-block">
178-
<strong>{{ $errors->first('token') }}</strong>
179-
</span>
180-
</div>
175+
<div class="alert alert-danger alert-dismissible fade show" role="alert">
176+
<strong>{{ $errors->first('token') }}</strong>
177+
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
178+
<span aria-hidden="true">&times;</span>
179+
</button>
181180
</div>
182181
@endif
183182
...

0 commit comments

Comments
 (0)