diff options
author | Joas Schilling <coding@schilljs.com> | 2022-03-14 15:30:59 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-03-14 15:33:26 +0300 |
commit | e07b12f1e8e3bf4c9c88ccb5456231e8e8bf45a7 (patch) | |
tree | 75825465a62d807ed7b5e42459856455f91e0eea | |
parent | 579f07ee2a525eab161da10280ab0cc26f85df64 (diff) |
Allow creating app passwords without validating the user's password againbackport/31519/stable23
Aparently the idea behind the command was exactly to do this.
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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( |