Skip to content

Commit ab29a67

Browse files
committed
Allow creating app passwords without validating the user's password again
Aparently the idea behind the command was exactly to do this. Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent a74248b commit ab29a67

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

core/Command/User/AddAppPassword.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
109109
return 1;
110110
}
111111

112-
if (!$this->userManager->checkPassword($user->getUID(), $password)) {
113-
$output->writeln('<error>The provided password is invalid</error>');
114-
return 1;
115-
}
112+
$output->writeln('<comment>The password has not been validated, some features might not work as intended.</comment>');
116113

117114
$token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);
118115
$generatedToken = $this->tokenProvider->generateToken(

0 commit comments

Comments
 (0)