mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 11:49:03 +00:00
Use dirape/token to generate tokens and passwords for users
This commit is contained in:
@@ -35,6 +35,11 @@ class ForgotPasswordController extends Controller
|
||||
$this->middleware('guest');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function showLinkRequestForm(Request $request)
|
||||
{
|
||||
$sent = '';
|
||||
@@ -59,7 +64,7 @@ class ForgotPasswordController extends Controller
|
||||
//
|
||||
// Generate a forgottenpassword guid, store it in the user table
|
||||
//
|
||||
$guid = md5(uniqid('', false));
|
||||
$guid = \Token::random(32);
|
||||
User::updatePassResetGuid($ret['id'], $guid);
|
||||
//
|
||||
// Send the email
|
||||
|
||||
Reference in New Issue
Block a user