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>
pull/31535/head
Joas Schilling 2 years ago
parent eb174781fc
commit e935c30e7d
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA

@ -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(

Loading…
Cancel
Save