Skip to content

Commit 6810e71

Browse files
Merge pull request #51671 from nextcloud/backport/51668/stable30
[stable30] fix(provisioning_api): Pass on translated hint if password change fails
2 parents 69290ab + 2b8e850 commit 6810e71

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
@@ -1065,7 +1065,7 @@ public function editUser(string $userId, string $key, string $value): DataRespon
10651065
}
10661066
$targetUser->setPassword($value);
10671067
} catch (HintException $e) { // password policy error
1068-
throw new OCSException($e->getMessage(), 107);
1068+
throw new OCSException($e->getHint(), 107);
10691069
}
10701070
break;
10711071
case self::USER_FIELD_LANGUAGE:

0 commit comments

Comments
 (0)