From a4527ce9af714463a6b93af867c5789244916f1a Mon Sep 17 00:00:00 2001 From: Eduard Lupacescu Date: Mon, 22 Nov 2021 13:43:48 +0200 Subject: [PATCH] fix: Fixing reset password. --- src/Commands/PublishAuthCommand.php | 4 ++-- src/Http/Controllers/Auth/ForgotPasswordController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Commands/PublishAuthCommand.php b/src/Commands/PublishAuthCommand.php index de94a72e..d4c57c70 100644 --- a/src/Commands/PublishAuthCommand.php +++ b/src/Commands/PublishAuthCommand.php @@ -19,7 +19,7 @@ public function handle() ->publishControllers() ->publishBlades() ->publishEmails() - ->registerRutes(); + ->registerRoutes(); $this->info('Restify Controllers & Emails published successfully'); } @@ -133,7 +133,7 @@ protected function setNamespace(string $stubDirectory, string $fileName, string * * @return $this */ - protected function registerRutes(): self + protected function registerRoutes(): self { $pathProvider = '../routes/api.php'; $routeStub = __DIR__ . '/stubs/Routes/routes.stub'; diff --git a/src/Http/Controllers/Auth/ForgotPasswordController.php b/src/Http/Controllers/Auth/ForgotPasswordController.php index 63d0eb9c..5c81c49e 100644 --- a/src/Http/Controllers/Auth/ForgotPasswordController.php +++ b/src/Http/Controllers/Auth/ForgotPasswordController.php @@ -19,7 +19,7 @@ public function __invoke(Request $request) ]); /** @var User $user */ - $user = config('config.auth.user_model')::query()->where($request->only('email'))->firstOrFail(); + $user = config('restify.auth.user_model')::query()->where($request->only('email'))->firstOrFail(); $token = Password::createToken($user);