Update usage of Token class

This commit is contained in:
DariusIII
2020-03-11 13:41:36 +01:00
parent b355ea02a8
commit 9f78214ac0
2 changed files with 4 additions and 2 deletions
@@ -7,6 +7,7 @@ use App\Jobs\SendPasswordForgottenEmail;
use App\Mail\ForgottenPassword;
use App\Models\Settings;
use App\Models\User;
use DariusIII\Token\Token;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Http\Request;
@@ -64,7 +65,7 @@ class ForgotPasswordController extends Controller
//
// Generate a forgottenpassword guid, store it in the user table
//
$guid = \Token::random(32);
$guid = Token::random(32);
User::updatePassResetGuid($ret['id'], $guid);
//
// Send the email