Use built-in functions

This commit is contained in:
DariusIII
2024-04-10 22:16:55 +02:00
parent 9521ccb54e
commit b98dbe1a10
4 changed files with 4 additions and 63 deletions
@@ -9,6 +9,7 @@ use App\Models\User;
use DariusIII\Token\Facades\Token;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
use Illuminate\Http\Request;
use Illuminate\Support\Str;
class ForgotPasswordController extends Controller
{
@@ -62,7 +63,7 @@ class ForgotPasswordController extends Controller
//
// Generate a forgottenpassword guid, store it in the user table
//
$guid = Token::random(32);
$guid = Str::random(32);
User::updatePassResetGuid($ret['id'], $guid);
//
// Send the email