Skip to content

Commit a4527ce

Browse files
committed
fix: Fixing reset password.
1 parent 34ebfb9 commit a4527ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Commands/PublishAuthCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function handle()
1919
->publishControllers()
2020
->publishBlades()
2121
->publishEmails()
22-
->registerRutes();
22+
->registerRoutes();
2323

2424
$this->info('Restify Controllers & Emails published successfully');
2525
}
@@ -133,7 +133,7 @@ protected function setNamespace(string $stubDirectory, string $fileName, string
133133
*
134134
* @return $this
135135
*/
136-
protected function registerRutes(): self
136+
protected function registerRoutes(): self
137137
{
138138
$pathProvider = '../routes/api.php';
139139
$routeStub = __DIR__ . '/stubs/Routes/routes.stub';

src/Http/Controllers/Auth/ForgotPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __invoke(Request $request)
1919
]);
2020

2121
/** @var User $user */
22-
$user = config('config.auth.user_model')::query()->where($request->only('email'))->firstOrFail();
22+
$user = config('restify.auth.user_model')::query()->where($request->only('email'))->firstOrFail();
2323

2424
$token = Password::createToken($user);
2525

0 commit comments

Comments
 (0)