Skip to content

Feat: add prepend to devise failure

What does this MR do and why?

Related MR on Jihu.

Devise is using the translations located at config/locales/devise.en.yml, so we can't overwrite it in jh/locale/en/gitlab.po. To override the error messages, we need to extend devise_failure.rb to override the i18n_message method.

Proposal

  1. add prepend_mod_with to gitlab/devise_failure.rb

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

/cc @prajnamas

Edited by Peter Leitzen

Merge request reports

Loading