You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(security): move security side-effects into service layer and fix job retries
- Add REASON constant to each RevokeUserGrants subclass so the reason
string is defined once on the class that owns it.
- Extract revokeAllMyTokens logic into IUserService::revokeAllGrantsOnSessionRevocation()
so that setRememberToken() is called inside a Doctrine transaction and
the rotated token is actually persisted.
- Move session regeneration from UserApiController::updateMe() into
UserService::update(), triggered by the real password-change condition
($former_password != $user->getPassword()) rather than the presence of
the password field in the request payload.
- Fix RevokeUserGrants retry behaviour: catch the exception from
revokeUsersToken(), log it at warning level with the attempt count,
then re-throw so the queue worker schedules the next retry. Final
failure is still logged at error level via failed().
0 commit comments