diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-03-22 13:53:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 13:53:42 +0100 |
commit | d5b0f81ef55ccb39fb6b276e55ae581af866e4a4 (patch) | |
tree | c0addb88899a6959ae8cd7779b7b1824b7a6e844 /core | |
parent | 0acd4b5f8202be8b3f3b4e6d7481e3d23e496b86 (diff) | |
parent | ab29a67a3261ee74d6974391d371229ad46a3be4 (diff) | |
download | nextcloud-server-d5b0f81ef55ccb39fb6b276e55ae581af866e4a4.tar.gz nextcloud-server-d5b0f81ef55ccb39fb6b276e55ae581af866e4a4.zip |
Merge pull request #31569 from nextcloud/bugfix/31519/revert-password-validation
Allow creating app passwords without validating the user's password a…
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/User/AddAppPassword.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/Command/User/AddAppPassword.php b/core/Command/User/AddAppPassword.php index 4f636c406fb..7a2270e20b1 100644 --- a/core/Command/User/AddAppPassword.php +++ b/core/Command/User/AddAppPassword.php @@ -109,10 +109,7 @@ class AddAppPassword extends Command { return 1; } - if (!$this->userManager->checkPassword($user->getUID(), $password)) { - $output->writeln('<error>The provided password is invalid</error>'); - return 1; - } + $output->writeln('<comment>The password has not been validated, some features might not work as intended.</comment>'); $token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS); $generatedToken = $this->tokenProvider->generateToken( |