Skip to content

Commit 2b64849

Browse files
Merge pull request #51670 from nextcloud/backport/51668/stable29
[stable29] fix(provisioning_api): Pass on translated hint if password change fails
2 parents 952361a + 767da99 commit 2b64849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/provisioning_api/lib/Controller/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ public function editUser(string $userId, string $key, string $value): DataRespon
10181018
}
10191019
$targetUser->setPassword($value);
10201020
} catch (HintException $e) { // password policy error
1021-
throw new OCSException($e->getMessage(), 107);
1021+
throw new OCSException($e->getHint(), 107);
10221022
}
10231023
break;
10241024
case self::USER_FIELD_LANGUAGE:

0 commit comments

Comments
 (0)