Skip to content

Conversation

@mlutfy
Copy link
Member

@mlutfy mlutfy commented Dec 16, 2025

Fix of #278, which can't be re-opened because of a force-push.

I thought more work was needed on core, but looks like @ufundo's suggested was already usable.


protected function execute(InputInterface $input, OutputInterface $output): int {
$expires = $input->getOption('expires');
$uid = $input->getOption('uid');
Copy link
Member

Choose a reason for hiding this comment

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

Can we rely on the existing/generic option, --user=NAME? The option is implemented in the parent classes, via CvCommand and BootTrait. It sets the current/active user.

So you would say:

cv password-reset --user=alice

And then if you need int $uid, I think it comes from CRM_Core_Session?

Co-authored-by: ufundo <ufundo@users.noreply.github.com>
@mlutfy
Copy link
Member Author

mlutfy commented Dec 17, 2025

Thanks @totten ! I implemented your suggestion.

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