Skip to content

Commit

Permalink
add queue to reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
elyerr committed Dec 29, 2023
1 parent 00cc8da commit 27790b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Models/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Elyerr\ApiResponse\Assets\Asset;
use Illuminate\Auth\Notifications\ResetPassword;
use Laravel\Passport\HasApiTokens;
use Elyerr\ApiResponse\Assets\Asset;
use Illuminate\Notifications\Notifiable;
use App\Notifications\Auth\ResetPassword;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens;

class Auth extends Authenticatable
{
Expand Down
5 changes: 5 additions & 0 deletions app/Notifications/Auth/ResetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

class ResetPassword extends ResetPasswordNotification implements ShouldQueue
{
use Queueable;

/**
* The password reset token.
*
Expand Down Expand Up @@ -41,6 +43,9 @@ class ResetPassword extends ResetPasswordNotification implements ShouldQueue
public function __construct($token)
{
$this->token = $token;

$this->queue = env('REDIS_QUEUE_NOTIFICATIONS', 'notify');

}

/**
Expand Down

0 comments on commit 27790b3

Please sign in to comment.