mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix(provisioning_api): Pass on translated hint if password change fails
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
ff70d226c9
commit
2b8e85008a
1 changed files with 1 additions and 1 deletions
|
|
@ -1065,7 +1065,7 @@ class UsersController extends AUserData {
|
|||
}
|
||||
$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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue