Files
ofbiz-framework/applications/securityext/config/EmailPassword.xml
T
Jacques Le Roux 0dd553ec96 A modified patch from Harsha Chadhar for "New feature to reclaim a user account - Using Security Questions" https://issues.apache.org/jira/browse/OFBIZ-4983
jleroux: the issue description is quite lengthy so I will summarise it here, please refer to the Jira issue for details.
"When a customer creates an account on eCommerce site, s/he will also need to answer a security question. This security question then can be used by the user to reclaim her/his account in case s/he forgets her/his password. If the user correctly answers the required security question while reclaiming her/his account, her/his password will be sent through email notification. This part would work in the same way as the existing functionality of email password (forget password)."

The description was actually more ambitious (several questions, possibility for users to create own questions) but AFAIK these parts have not been implemented.

Apart updating the patch which did not merge, I got 2 majors issues (and few others I will not report here) I bypassed with workarounds.

Unlike Harsha, and as I reported earlier in the issue, I never got the username (userLoginId) back when using hidden parameters in the request body (not in requestParameters, ie UtilHttp.getParameterMap(request)), nor actually any parameters. This is maybe due to my OS (Windows7 was XP before) or my email client (Outlook Express then, now Thunderbird) or even my SMTP configuration (I used my ISP SMTP server) but most probably because I did it all on my sole machine (localhost). I tried to understand what was happening to request body parameters with http://www.telerik.com/fiddler, but finally gave up because it's even more complicated when https is in the picture. So I decided to rather use parameters in the URL (Query string). It's a bit less safe, though the password is OFBiz encrypted, and should be replaced. But it's safe enough because only the user should receive this message and even if the message is sniffed during its journey it should be hard to decrypt the password!

Harsha used the SecurityExtUiLabels.xml (created by ashish at r1618415) in securityext component but there is already a SecurityextUiLabels.xml in common component. Since I use Windows OFBiz was unable to retrieve the labels from SecurityExtUiLabels.xml since I guess it looked into a SecurityextUiLabels.xml. So I renamed a SecurityExtUiLabels.xml to EmailPassword.xml.










git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1716915 13f79535-47bb-0310-9956-ffa450edef68
2015-11-27 20:37:15 +00:00

105 lines
5.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-properties.xsd">
<property key="SecurityExtANew">
<value xml:lang="da">en ny</value>
<value xml:lang="de">Ein neues</value>
<value xml:lang="en">a new</value>
<value xml:lang="fr">un nouveau</value>
<value xml:lang="it">una nuova</value>
<value xml:lang="ja">お知らせ</value>
<value xml:lang="nl">een nieuw(e)</value>
<value xml:lang="pt-BR">uma nova</value>
<value xml:lang="th">ใหม่</value>
<value xml:lang="vi">mới</value>
<value xml:lang="zh">一个新的</value>
<value xml:lang="zh-TW">一個新的</value>
</property>
<property key="SecurityExtNewPasswordMssgEncryptionOff">
<value xml:lang="da">Deres adgangskode er:</value>
<value xml:lang="de">Ihr Passwort ist: </value>
<value xml:lang="en">Your password is :- </value>
<value xml:lang="fr">Votre mot de passe est : </value>
<value xml:lang="it">La tua password è :- </value>
<value xml:lang="ja">あなたのパスワードは :-</value>
<value xml:lang="nl">Uw wachtwoord is :</value>
<value xml:lang="pt-BR">Sua senha é:</value>
<value xml:lang="zh">你的密码是:- </value>
<value xml:lang="vi">Mật khẩu của bạn :-</value>
<value xml:lang="zh-TW">你的密碼是 :- </value>
</property>
<property key="SecurityExtNewPasswordMssgEncryptionOn">
<value xml:lang="da">Deres nye adgangskode er :- </value>
<value xml:lang="de">Ihr neues Passwort ist : </value>
<value xml:lang="en">Your new password is :- </value>
<value xml:lang="fr">Votre nouveau mot de passe est : </value>
<value xml:lang="it">La nuova password è :- </value>
<value xml:lang="ja">あなたの新しいパスワードは :-</value>
<value xml:lang="nl">Uw nieuwe wachtwoord is : </value>
<value xml:lang="pt-BR">Sua nova senha é:</value>
<value xml:lang="zh">你的新密码是:- </value>
<value xml:lang="zh-TW">你的新密碼是 :- </value>
<value xml:lang="vi">Mật khẩu mới của bạn :-</value>
</property>
<property key="SecurityExtPasswordSentToYou">
<value xml:lang="da">kodeord er sendt til Dem</value>
<value xml:lang="de">Passwort das Ihnen zugesendet wurde</value>
<value xml:lang="en">password sent to you</value>
<value xml:lang="fr">mot de passe</value>
<value xml:lang="it">password inviata a te</value>
<value xml:lang="ja">パスワードを送信しました</value>
<value xml:lang="nl">Wachtwoord dat naar u verzonden is</value>
<value xml:lang="pt-BR">Senha enviada para você</value>
<value xml:lang="th">ส่งรหัสผ่านถึงคุณ</value>
<value xml:lang="vi">mật khẩu được gửi tới bạn</value>
<value xml:lang="zh">密码发送给你了</value>
<value xml:lang="zh-TW">密碼已發送給你</value>
</property>
<property key="SecurityExtThisEmailIsInResponseToYourRequestToHave">
<value xml:lang="da">Denne E-mail er et svar på Deres forespørgsel for at få</value>
<value xml:lang="de">Dieses E-Mail ist eine Antwort auf Ihre Anfrage zu </value>
<value xml:lang="en">This email is in response to your request to have</value>
<value xml:lang="fr">Ce courriel en réponse à votre demande d'obtenir</value>
<value xml:lang="it">Questa email ti è stata inviata in seguito alla tua richiesta.</value>
<value xml:lang="ja">このメールはあなたがリクエストされたものです</value>
<value xml:lang="nl">Deze email is verzonden naar aanleiding van uw verzoek.</value>
<value xml:lang="pt-BR">Este e-mail lhe foi enviado devido ao seu pedido</value>
<value xml:lang="th">คำร้องของคุณมีการตอบในอีเมลนี้</value>
<value xml:lang="vi">Thư điện tử này để phản hồi việc bạn yêu cầu muốn có</value>
<value xml:lang="zh">这个电子邮件是回答你要求的</value>
<value xml:lang="zh-TW">此電子郵件是回應你的請求的</value>
</property>
<property key="SecurityExtYour">
<value xml:lang="da">Deres</value>
<value xml:lang="de">Ihr</value>
<value xml:lang="en">your</value>
<value xml:lang="fr">Votre</value>
<value xml:lang="it">tuo</value>
<value xml:lang="ja">あなたの</value>
<value xml:lang="nl">uw</value>
<value xml:lang="pt-BR">seu</value>
<value xml:lang="th">ของคุณ</value>
<value xml:lang="vi">của bạn</value>
<value xml:lang="zh">你的</value>
<value xml:lang="zh-TW">你的</value>
</property>
</resource>