Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Show a more generic error message as there are multiple possible error reasons. The detailed error message is handled by the `error_messages_for` helper in the partials

Henriette Darge0f68f0d5b1d0
diff --git a/app/services/users/change_password_service.rb b/app/services/users/change_password_service.rb
index 8198fb12876..20494d4e3e7 100644
--- a/app/services/users/change_password_service.rb
+++ b/app/services/users/change_password_service.rb
@@ -52,7 +52,7 @@ module Users
log_failure
::ServiceResult.new success: false,
result: current_user,
- message: I18n.t(:notice_can_t_change_password),
+ message: I18n.t(:error_password_change_failed),
errors: current_user.errors
end
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f4843f2a142..5f859236ee8 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -934,7 +934,7 @@ en:
user: "User"
version: "Version"
work_package: "Work package"
-
+
backup:
label_backup_token: "Backup token"
label_create_token: "Create backup token"
@@ -1266,6 +1266,7 @@ en:
error_no_type_in_project: "No type is associated to this project. Please check the Project settings."
error_omniauth_registration_timed_out: "The registration via an external authentication provider timed out. Please try again."
error_omniauth_invalid_auth: "The authentication information returned from the identity provider was invalid. Please contact your administrator for further help."
+ error_password_change_failed: 'An error occurred when trying to change the password.'
error_scm_command_failed: "An error occurred when trying to access the repository: %{value}"
error_scm_not_found: "The entry or revision was not found in the repository."
error_unable_delete_status: "The work package status cannot be deleted since it is used by at least one work package."
@@ -3125,5 +3126,5 @@ en:
authorization_error: "An authorization error has occurred."
revoke_my_application_confirmation: "Do you really want to remove this application? This will revoke %{token_count} active for it."
my_registered_applications: "Registered OAuth applications"
-
+
you: you