Skip to content

Commit a4ddc6d

Browse files
provokateurinbackportbot[bot]
authored andcommitted
fix(provisioning_api): Pass on translated hint if password change fails
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 32413b8 commit a4ddc6d

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
@@ -1073,7 +1073,7 @@ public function editUser(string $userId, string $key, string $value): DataRespon
10731073
}
10741074
$targetUser->setPassword($value);
10751075
} catch (HintException $e) { // password policy error
1076-
throw new OCSException($e->getMessage(), 107);
1076+
throw new OCSException($e->getHint(), 107);
10771077
}
10781078
break;
10791079
case self::USER_FIELD_LANGUAGE:

0 commit comments

Comments
 (0)