on 2018 Jul 12 11:16 AM
Hi,
The reset password procedure doesn’t work properly. When a user tries to reset his password, sometimes the system doesn’t send the email with the procedure to do it. The only way to unlock this situation It is one in which the customer/user cleans the browser cookies. After this procedure, the customer can do another password reset and finally receive the email
The console log file:
[hybrisHTTP48] [10.108.10.98] [RequireHardLoginEvaluator] missing secure token in session, login required
INFO | jvm 1 | main | 2018/02/10 09:54:16.573 | ^[[m
[hybrisHTTP48] [10.108.10.98] [PasswordResetPageController] Email: ff@gmail.com does not exist in the database.
We debug the code and found the method that goes into error is: yacceleratorstorefront/web/src/com/ourgroup/storefront/controllers/pages/PasswordResetPageController.java
@RequestMapping(value = "/request", method = RequestMethod.POST)
public String passwordRequest(@Valid final ForgottenPwdForm form, final BindingResult bindingResult,
final Model model) throws CMSItemNotFoundException {
if (bindingResult.hasErrors()) {
return ControllerConstants.Views.Fragments.Password.PasswordResetRequestPopup;
} else {
try {
customerFacade.forgottenPassword(form.getEmail());
} catch (final UnknownIdentifierException unknownIdentifierException) {
LOG.warn("Email: " + form.getEmail() + " does not exist in the database.");
} catch (final ClassMismatchException classMismatchException) {
LOG.warn("Email: " + form.getEmail() + " belongs to an user who isn't a customer.");
return ControllerConstants.Views.Fragments.Password.ForgotPasswordErrorMessage;
}
return ControllerConstants.Views.Fragments.Password.ForgotPasswordValidationMessage;
}
}
The user exists and the mail it's correct. The error is not replicable in our local environment. We tried to debug the code but the method described before looks correct and doesn’t catch an exception for subscribed users. We are not able to understand which component causes an error, and which is the role of the cookies or the session in this issue.
Thanks,
Federico
Request clarification before answering.
As per my understanding and analysis with latest hybris 6.0 and above.. your employee or ustomer uid and email id should be same. when you are resetting the password the email will be generated for uid. always try to maintain the uid and email id are same to fix the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May sound stupid but check wether user is disabled?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.