fix(provisioning_api): Pass on translated hint if password change fails

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-03-24 15:19:08 +01:00 committed by backportbot[bot]
parent 32413b8896
commit a4ddc6dc6c

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: