Skip to content

Commit f881a2e

Browse files
Issue public website 2 (#400)
* fix invite logic * fix invite logic
1 parent 2474362 commit f881a2e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/Http/Livewire/Welcome.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function mount($user, Request $request): void
4141
abort(Response::HTTP_FORBIDDEN, __('auth.welcome.invalid_signature'));
4242
}
4343

44-
$this->user = User::find($user)->first();
44+
$this->user = User::where('id', $user->id)->first();
4545

4646
if (\is_null($this->user)) {
4747
abort(Response::HTTP_FORBIDDEN, __('auth.welcome.no_user'));

database/factories/UserFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use App\Enums\UserRole;
88
use Illuminate\Database\Eloquent\Factories\Factory;
9+
use Illuminate\Support\Facades\Hash;
910
use Illuminate\Support\Str;
1011

1112
/**
@@ -24,7 +25,7 @@ public function definition(): array
2425
'name' => fake()->name(),
2526
'email' => fake()->unique()->safeEmail(),
2627
'email_verified_at' => now(),
27-
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
28+
'password' => Hash::make('password'), // password
2829
'remember_token' => Str::random(10),
2930
'newsletter' => fake()->boolean(),
3031
];

0 commit comments

Comments
 (0)