Fixes for password reset via queues

This commit is contained in:
Deon George
2020-01-30 21:39:25 +11:00
parent 0eb0d4739e
commit b85aabe979
6 changed files with 38 additions and 86 deletions

View File

@@ -11,7 +11,7 @@ use Laravel\Passport\HasApiTokens;
use Leenooks\Carbon;
use Leenooks\Traits\UserSwitch;
use App\Notifications\ResetPasswordNotification;
use App\Notifications\ResetPassword as ResetPasswordNotification;
use App\Models\Service;
use Spinen\QuickBooks\HasQuickBooksToken;
@@ -200,7 +200,7 @@ class User extends Authenticatable
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
$this->notify((new ResetPasswordNotification($token))->onQueue('high'));
}
/** Scopes **/