Skip to content

Commit

Permalink
LP-4 send forgot password option moved to configurable option
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Oct 16, 2023
1 parent a692a1e commit 681ac13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
| Exclude auth fields
| Example: reset_link, otp, temporary_password
*/
'self_password_reset' => true,
'password_reset_method' => 'otp',
'self_password_reset' => false,
'password_reset_method' => 'temporary_password',
'temporary_password_length' => 8,


Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/PasswordResetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function update(PasswordResetRequest $request): JsonResponse
{
$request->validate([
'token' => ['required'],
'email' => ['required', 'email'],
'password' => ['required', 'confirmed', Rules\Password::defaults()],
'login_id' => ['required', 'email'],
'password' => ['required', 'confirmed', 'min:8'],
]);

// Here we will attempt to reset the user's password. If it is successful we
Expand Down

0 comments on commit 681ac13

Please sign in to comment.