diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 1613561fbe1f7..6a7bf6681293d 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -634,6 +634,7 @@ public function getEditableFieldsForUser(string $userId): DataResponse { * @NoAdminRequired * @NoSubAdminRequired * @PasswordConfirmationRequired + * @UserRateThrottle(limit=5, period=60) * * @throws OCSException */ @@ -726,6 +727,7 @@ public function editUserMultiValue( * @NoAdminRequired * @NoSubAdminRequired * @PasswordConfirmationRequired + * @UserRateThrottle(limit=50, period=600) * * edit users * diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue index c6c4376fa107a..35d8b57aabdf8 100644 --- a/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue +++ b/apps/settings/src/components/PersonalInfo/EmailSection/Email.vue @@ -94,7 +94,7 @@ import { showError } from '@nextcloud/dialogs' import debounce from 'debounce' import FederationControl from '../shared/FederationControl.vue' -import logger from '../../../logger.js' +import { handleError } from '../../../utils/handlers.js' import { ACCOUNT_PROPERTY_READABLE_ENUM, VERIFICATION_ENUM } from '../../../constants/AccountPropertyConstants.js' import { @@ -358,8 +358,7 @@ export default { this.showCheckmarkIcon = true setTimeout(() => { this.showCheckmarkIcon = false }, 2000) } else { - showError(errorMessage) - logger.error(errorMessage, error) + handleError(error, errorMessage) this.showErrorIcon = true setTimeout(() => { this.showErrorIcon = false }, 2000) } diff --git a/apps/settings/src/components/PersonalInfo/EmailSection/EmailSection.vue b/apps/settings/src/components/PersonalInfo/EmailSection/EmailSection.vue index 6bfb8bfee8b2b..613b90356c3d7 100644 --- a/apps/settings/src/components/PersonalInfo/EmailSection/EmailSection.vue +++ b/apps/settings/src/components/PersonalInfo/EmailSection/EmailSection.vue @@ -63,7 +63,6 @@