summaryrefslogtreecommitdiff
path: root/src/Controllers/PasswordResetController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Controllers/PasswordResetController.php')
-rw-r--r--src/Controllers/PasswordResetController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Controllers/PasswordResetController.php b/src/Controllers/PasswordResetController.php
index 505ed8eb..a1460104 100644
--- a/src/Controllers/PasswordResetController.php
+++ b/src/Controllers/PasswordResetController.php
@@ -74,7 +74,7 @@ class PasswordResetController extends BaseController
/** @var User $user */
$user = User::whereEmail($data['email'])->first();
if ($user) {
- $reset = PasswordReset::findOrNew($user->id);
+ $reset = (new PasswordReset)->findOrNew($user->id);
$reset->user_id = $user->id;
$reset->token = md5(random_bytes(64));
$reset->save();