Skip to content

Commit

Permalink
Add Deprecation for UsersCheckPasswordCommand (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b authored Nov 30, 2024
1 parent 4b94858 commit fbfcb65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Command/UsersCheckPasswordCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;

/**
* @deprecated Use dovecot API with Lua auth instead.
*/
#[AsCommand(name: 'app:users:checkpassword')]
class UsersCheckPasswordCommand extends Command
{
Expand Down Expand Up @@ -62,6 +65,8 @@ protected function configure(): void
*/
protected function execute(InputInterface $input, OutputInterface $output): ?int
{
trigger_error("UsersCheckPasswordCommand is deprecated. Use dovecot API with Lua auth instead.", E_USER_DEPRECATED);

$replyArgs = $input->getArgument('checkpassword-reply');

$replyCommand = null;
Expand Down

0 comments on commit fbfcb65

Please sign in to comment.