Skip to content

Commit 92c31c0

Browse files
committed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/Http/Controllers/Auth/NewPasswordController.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ function (User $user) use ($request) {
6060
// the application's home authenticated view. If there is an error we can
6161
// redirect them back to where they came from with their error message.
6262
if ($status == Password::PASSWORD_RESET) {
63-
if ($request->user()->isParent()) {
63+
$user = User::where('email', $request->email)->firstOrFail();
64+
65+
if ($user->isParent()) {
6466
return redirect()->route('parent.login')->with('status', __($status));
6567
}
6668

database/seeders/TimezoneSeeder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class TimezoneSeeder extends Seeder
99
{
1010
public function run()
1111
{
12-
$data = json_decode(file_get_contents(asset('/assets/timezones.json')), true);
12+
$data = json_decode(file_get_contents(public_path('/assets/timezones.json')), true);
1313

1414
Timezone::truncate();
1515

0 commit comments

Comments
 (0)