Skip to content

Refactor mailcrypt creation #767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

y3n4
Copy link
Contributor

@y3n4 y3n4 commented Apr 12, 2025

No description provided.

@y3n4 y3n4 force-pushed the refactor-mailcrypt-creation branch 6 times, most recently from 482ae5e to 920f794 Compare April 13, 2025 08:46
@y3n4 y3n4 marked this pull request as ready for review April 13, 2025 08:51
@y3n4 y3n4 force-pushed the refactor-mailcrypt-creation branch from 37f02cf to ab0829c Compare April 28, 2025 15:10
Copy link

Copy link
Contributor

@doobry-systemli doobry-systemli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test yet. The code changes look sensible to me, except for one comment where I'm not sure.

}

public function onSecurityInteractiveLogin(InteractiveLoginEvent $event): void
{
$user = $event->getAuthenticationToken()->getUser();

if ($user instanceof User) {
$this->handleLogin($user);
$password = $event->getRequest()->get('_password');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this guaranteed to work on all interactive logins? I don't know the details of this InteractiveLoginEvent and when exactly it is dispatched. Is login via the login form the only interactive login scenario? I guess there _password is accessible in the request.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically InteractiveLoginEvent covers anything which is interactive, including Json login. But with our current code, the login form is the only case, yes
https://symfony.com/doc/current/security.html#other-events

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

Successfully merging this pull request may close these issues.

2 participants