Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Cant Spool Email and Authenticate User Login in Same Response #38

Closed
carlcraig opened this issue Jun 4, 2013 · 1 comment
Closed

Cant Spool Email and Authenticate User Login in Same Response #38

carlcraig opened this issue Jun 4, 2013 · 1 comment

Comments

@carlcraig
Copy link

Im not sure if the problem is with Swiftmailer or the Security component.

symfony/symfony#8188

There is a bug at the moment, where: you cannot spool an email and authenticate the user in the same response.

The authentication works, but the session disappears for One request, before appearing again. This only happens when the email is actually sent.

This causes the user to appear 'Anonymous' for the next response, which is causing problems, as the application could be expecting the user to be logged in.

This currently prevents spooling emails on any events where the user may also get logged in,

password change success
email confirmation
account created
etc
I have created a test bundle using symfony standard and the demo login setup.

https://github.com/carlcraig/symfony-standard/tree/spool-auth

I have also tested this with FOSUserBundle

https://github.com/carlcraig/symfony-standard/tree/fos-userbundle-spool-auth

Has anyone else encountered this problem?

Is there any way to get round this?

@carlcraig
Copy link
Author

symfony/symfony#6417

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant