/[Apache-SVN]
ViewVC logotype

Revision 1716915


Jump to revision: Previous Next
Author: jleroux
Date: Fri Nov 27 20:37:15 2015 UTC (8 years, 5 months ago)
Changed paths: 25
Log Message:
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.










Changed paths

Path Details
Directoryofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml modified , text changed
Directoryofbiz/trunk/applications/party/widget/partymgr/PartyForms.xml modified , text changed
Directoryofbiz/trunk/applications/securityext/config/EmailPassword.xml
(Copied from ofbiz/trunk/applications/securityext/config/SecurityExtUiLabels.xml, r1716376)
added , text changed
Directoryofbiz/trunk/applications/securityext/config/SecurityExtUiLabels.xml deleted
Directoryofbiz/trunk/applications/securityext/email/default/passwordemail.ftl modified , text changed
Directoryofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/login/LoginEvents.java modified , text changed
Directoryofbiz/trunk/applications/securityext/widget/EmailSecurityScreens.xml modified , text changed
Directoryofbiz/trunk/framework/common/config/SecurityUiLabels.xml modified , text changed
Directoryofbiz/trunk/framework/common/config/SecurityextUiLabels.xml modified , text changed
Directoryofbiz/trunk/framework/common/servicedef/services.xml modified , text changed
Directoryofbiz/trunk/framework/common/servicedef/services_security.xml modified , text changed
Directoryofbiz/trunk/framework/common/src/org/ofbiz/common/login/LoginServices.java modified , text changed
Directoryofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml modified , text changed
Directoryofbiz/trunk/framework/common/webcommon/changePassword.ftl modified , text changed
Directoryofbiz/trunk/framework/common/webcommon/forgotPassword.ftl modified , text changed
Directoryofbiz/trunk/framework/common/webcommon/getSecurityQuestion.ftl added
Directoryofbiz/trunk/framework/common/webcommon/login.ftl modified , text changed
Directoryofbiz/trunk/framework/common/widget/CommonScreens.xml modified , text changed
Directoryofbiz/trunk/framework/common/widget/SecurityForms.xml modified , text changed
Directoryofbiz/trunk/framework/security/config/security.properties modified , text changed
Directoryofbiz/trunk/framework/security/data/SecurityTypeDemoData.xml added
Directoryofbiz/trunk/framework/security/entitydef/entitymodel.xml modified , text changed
Directoryofbiz/trunk/framework/security/ofbiz-component.xml modified , text changed
Directoryofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java modified , text changed
Directoryofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26