Skip to content

Commit

Permalink
fix: Fixing reset password.
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Nov 22, 2021
1 parent 34ebfb9 commit a4527ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Commands/PublishAuthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function handle()
->publishControllers()
->publishBlades()
->publishEmails()
->registerRutes();
->registerRoutes();

$this->info('Restify Controllers & Emails published successfully');
}
Expand Down Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Auth/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a4527ce

Please sign in to comment.