Closed rokiden closed 9 months ago
Thank you for the hint @rokiden . I could reproduce it, this will be fixed in the coming v4.5.
👋🏼 Hey @rokiden, this issue has been fixed and released with v4.5.0. Feel free to try it out and let us know if it persists.
Invalid link generated by recover_user command
What you did
recover_user
command in console for each userWhat happened
links contains invalid user_id
recover_user
command builds invalid SQL query without username filter:Than creates token for random user returned by this query, instead of
--username
option specified.BUG: https://github.com/passbolt/passbolt_api/blob/bc93285dc311c66c6ff30922904437c99e9a5571/src/Command/RecoverUserCommand.php#L69C29-L69C29 it's not filter trait, I think it must be
activeNotDeleted
(found in traits), tested, works correctly.