<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Problem with reset password procedure in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052965#M403873</link>
    <description>&lt;P&gt;Sounds good. But how a user can log in if he doesn't know the password? Does he only need to try to log in?
&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 12:35:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-07-17T12:35:54Z</dc:date>
    <item>
      <title>Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaq-p/12052958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;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&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The console log file:&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; [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.


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We debug the code and found the method that goes into error is: 
&lt;EM&gt;yacceleratorstorefront/web/src/com/ourgroup/storefront/controllers/pages/PasswordResetPageController.java&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;     @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;
         }
     }

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;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.
&lt;STRONG&gt;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&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Federico&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 10:16:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaq-p/12052958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-12T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052959#M403867</link>
      <description>&lt;P&gt;May sound stupid but check wether user is disabled?
&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052959#M403867</guid>
      <dc:creator>Huskar</dc:creator>
      <dc:date>2018-07-12T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052960#M403868</link>
      <description>&lt;P&gt;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.
&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052960#M403868</guid>
      <dc:creator>VinayKumarS</dc:creator>
      <dc:date>2018-07-12T15:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052961#M403869</link>
      <description>&lt;P&gt;Thanks Krishn,
the user is enable. The disable login is in false status
&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052961#M403869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-17T10:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052962#M403870</link>
      <description>&lt;P&gt;Thanks Vinay,
the user mail (id) and the user uid are the same for every user.
The reset password procedure works well but only if we delete our session data before.
&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052962#M403870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-17T10:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052963#M403871</link>
      <description>&lt;P&gt;The reset password procedure works well but only if we delete our session data before.
&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052963#M403871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-17T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052964#M403872</link>
      <description>&lt;P&gt;oh. Then before clicking the ResetPassword controller. Put @RequiresHardLogin. then if the session is expired. and user click on the reset password link. First it will ask for a login. Then user can use forget password. 
&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 11:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052964#M403872</guid>
      <dc:creator>VinayKumarS</dc:creator>
      <dc:date>2018-07-17T11:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052965#M403873</link>
      <description>&lt;P&gt;Sounds good. But how a user can log in if he doesn't know the password? Does he only need to try to log in?
&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 12:35:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052965#M403873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-17T12:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with reset password procedure</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052966#M403874</link>
      <description>&lt;P&gt;In that case user has to click on the forget password link. so that the email will be triggered to registered email address.
&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/problem-with-reset-password-procedure/qaa-p/12052966#M403874</guid>
      <dc:creator>VinayKumarS</dc:creator>
      <dc:date>2018-07-17T13:04:37Z</dc:date>
    </item>
  </channel>
</rss>

