Skip to content

Commit d5b0f81

Browse files
Merge pull request #31569 from nextcloud/bugfix/31519/revert-password-validation
Allow creating app passwords without validating the user's password a…
2 parents 0acd4b5 + ab29a67 commit d5b0f81

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)