Merge pull request #51668 from nextcloud/fix/provisioning_api/password-change-hint-translation

fix(provisioning_api): Pass on translated hint if password change fails
This commit is contained in:
Kate 2025-03-24 16:06:02 +01:00 committed by GitHub
commit 9459724e72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1073,7 +1073,7 @@ class UsersController extends AUserDataOCSController {
}
$targetUser->setPassword($value);
} catch (HintException $e) { // password policy error
throw new OCSException($e->getMessage(), 107);
throw new OCSException($e->getHint(), 107);
}
break;
case self::USER_FIELD_LANGUAGE: