mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 18:58:56 +00:00
Use built-in functions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user