|
hello
I'm a new user of ofbiz, i'm trying to resolve the probleme of "Retrieving forgotten passwords"
My problem is "Retrieving forgotten passwords", i can release this point of ofbiz's security and i'm following the Ebook instruction.
Firstly i started by adding the following code to the controller.xml wich exist under the path specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml:
<request-map uri="forgotpassword"> <security https="true" auth="false"/> <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
invoke="forgotPassword"/> <response name="success" type="view" value="login"/> <response name="error" type="view" value="login"/> </request-map>
then it ask me the add the following code to a freemarker that i could'nt identify it location (path), the code is :
<#-- Note: the user must supply a valid userLoginId in the
"Username" field for this to work -->
<#-- If they don't, an error message will be returned -->
<form method="post" action="<@ofbizUrl>forgotpassword</@ofbizUrl>"
name="forgotpassword" style="margin: 0;">
${uiLabelMap.CommonUsername}:
<input type="text" size="20" class="inputBox" name="USERNAME"
value="<#if requestParameters.USERNAME?has_content> ${requestParameters.USERNAME}
<#elseif autoUserLogin?has_content>
${autoUserLogin.userLoginId}
</#if>"/>
<input type="submit" name="EMAIL_PASSWORD" class="smallSubmit"
value="${uiLabelMap.CommonEmailPassword}"/> </form>
i verify if i have the public static String emailPassword(HttpServletRequest request,HttpServletResponse response) { } on the LoginEvents.java and it is.
when i try to simulate that i forgot my password and i need that it will be sent to my adress mail, the ofbiz show me the following message :
The Following Errors Occurred:
No Primary Email Address has been set, please contact customer service.
i connect my self under party manager and i changed the default mail with mine, but other peaple told me that i should add "purpose" to my email address and verify that It should be "Primary email address".
please, what does mean purpose?
How can i make my adress the primary adress?
Thnks
|