diff --git a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml index 6e29f06a01bd0302c96adb3b9fd7e236f5f99634..5af62ca577a7a7de7c7bf7bb47547b53e9050ce9 100644 --- a/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml +++ b/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_getRelatedCredentialQuestionDialog.xml @@ -65,7 +65,7 @@ if choice == "password":\n portal_preferences = context.portal_preferences\n result = person_module.searchFolder(reference={\'query\': reference, \'key\': \'ExactMatch\'})\n if len(result) != 1:\n - portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n + portal_status_message = context.Base_translateString("Could not find your user account.")\n if web_site:\n return web_site.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n return portal.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n @@ -96,12 +96,13 @@ if choice == "password":\n elif choice == "username":\n query_kw = {"email.url_string" : default_email_text}\n result = portal.portal_catalog(portal_type="Email", parent_portal_type="Person", **query_kw)\n - if len(result) == 0:\n - portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n + person_list = [x.getParentValue() for x in result]\n + person_list = [x for x in result if x.getReference()] # only consider persons with a valid login\n + if len(person_list) == 0:\n + portal_status_message = context.Base_translateString("Could not find your user account.")\n if web_site:\n return web_site.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n return portal.Base_redirect(\'login_form\', keep_items = dict(portal_status_message=portal_status_message ))\n - person_list = [x.getParentValue() for x in result]\n return context.ERP5Site_newCredentialRecovery(default_email_text=default_email_text, person_list=person_list)\n </string> </value> </item> diff --git a/bt5/erp5_l10n_fr/MessageTranslationTemplateItem/fr/erp5_ui/translation.po b/bt5/erp5_l10n_fr/MessageTranslationTemplateItem/fr/erp5_ui/translation.po index 22e54be743ee766143343d294aa077d56b75ee31..86fbdeb6b4a580368833bd26ff2464dc1e9fac2f 100644 --- a/bt5/erp5_l10n_fr/MessageTranslationTemplateItem/fr/erp5_ui/translation.po +++ b/bt5/erp5_l10n_fr/MessageTranslationTemplateItem/fr/erp5_ui/translation.po @@ -1659,9 +1659,6 @@ msgstr "Impossible de trouver l'organisation correspondant à votre login, il n' msgid "Can't find corresponding person, it's not possible to reset your password." msgstr "Impossible de trouver la personne correspondant à votre login, il n'est pas possible de réinitialiser votre mot de passe." -msgid "Can't find corresponding person, it's not possible to update your credentials." -msgstr "Impossible de trouver la personne correspondant à votre login, il n'est pas possible de mettre à jour vos informations." - msgid "Cancel" msgstr "Annuler" @@ -2661,6 +2658,9 @@ msgstr "Dénomination sociale" msgid "Corporate Registration Code" msgstr "SIRET" +msgid "Could not find your user account." +msgstr "Impossible de trouver votre compte utilisateur." + msgid "Count" msgstr "Nombre" diff --git a/bt5/erp5_l10n_fr/bt/revision b/bt5/erp5_l10n_fr/bt/revision index 0d389107a348aa189d7b862d7834120e53f2e3a5..964480f63e4d594a56f6dc7e847da17f1a568eb1 100644 --- a/bt5/erp5_l10n_fr/bt/revision +++ b/bt5/erp5_l10n_fr/bt/revision @@ -1 +1 @@ -212 +213