diff --git a/system/Controllers/ControllerFrontendAuth.php b/system/Controllers/ControllerFrontendAuth.php index 00ee77f..54b6e19 100644 --- a/system/Controllers/ControllerFrontendAuth.php +++ b/system/Controllers/ControllerFrontendAuth.php @@ -147,7 +147,7 @@ class ControllerFrontendAuth extends ControllerShared return $response->withRedirect($this->c->router->pathFor('auth.recoverpwshow')); } - $requiredUser = $user->getSecureUser($requiredUser[0]); + $requiredUser = $user->getSecureUser($requiredUser['username']); $requiredUser['recoverdate'] = date("Y-m-d H:i:s"); $requiredUser['recovertoken'] = bin2hex(random_bytes(32));