Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Closed
Description
Hello,
I followed the documentation to set up the remember me functionality and the remember me cookie is not created during authentication if in addition I do not add 'new RememberMeBadge ()' in the authenticate function of the AppCustomAuthenticator .
publicfunctionauthenticate(Request$request):PassportInterface{$email =$request->request->get('email','');$request->getSession()->set(Security::LAST_USERNAME,$email);returnnewPassport(newUserBadge($email),newPasswordCredentials($request->request->get('password','')), [newCsrfTokenBadge('authenticate',$request->request->get('_csrf_token')),newRememberMeBadge() ] );}
thank you for your feedback and your actions