Skip to content

Commit 712ce9d

Browse files
committed
fix: minor fixes related to fortify
1 parent f583835 commit 712ce9d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

adminlte-stubs/auth/passwords/reset.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
<form action="{{ route('password.update') }}" method="POST">
2929
@csrf
3030

31+
@php
32+
if (!isset($token)) {
33+
$token = \Request::route('token');
34+
}
35+
@endphp
36+
3137
<input type="hidden" name="token" value="{{ $token }}">
3238

3339
<div class="input-group mb-3">

src/FortifyAdminLTEPresetServiceProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ public function boot()
2525
});
2626

2727
Fortify::loginView(function () {
28-
view('auth.login');
28+
return view('auth.login');
2929
});
3030

3131
Fortify::registerView(function () {
32-
view('auth.register');
32+
return view('auth.register');
3333
});
3434

3535
Fortify::confirmPasswordView(function () {
36-
view('auth.passwords.confirm');
36+
return view('auth.passwords.confirm');
3737
});
3838

3939
Fortify::requestPasswordResetLinkView(function () {
40-
view('auth.passwords.email');
40+
return view('auth.passwords.email');
4141
});
4242

4343
Fortify::resetPasswordView(function (Request $request) {
44-
view('auth.passwords.reset');
44+
return view('auth.passwords.reset');
4545
});
4646

4747
Fortify::verifyEmailView(function () {
48-
view('auth.verify');
48+
return view('auth.verify');
4949
});
5050
}
5151
}

0 commit comments

Comments
 (0)