Fix #115 Check if $account exists

This commit is contained in:
Timothée Jaussoin 2023-08-24 14:18:12 +02:00
parent 5fd6766a8e
commit 3ae460de5a

View file

@ -144,7 +144,7 @@ class ProvisioningController extends Controller
}
// Password reset
if ($request->has('reset_password')) {
if ($account && $request->has('reset_password')) {
$account->updatePassword(Str::random(10));
}