Surendra Sharma

Surendra Sharma

Search This Blog

Monday, March 15, 2021

Sitecore forgot password configuration with Sendgrid

Recently I worked on forgot password functionality from where user can get new password in his inbox through SendGrid in case if he forgot the Sitecore login password.

My Sitecore instance is on Azure. 

Open Kudu

I create a patch file at \site\wwwroot\App_Config\Include\zzz\MyPatchFile.config file and in <settings> section add below SMTP details lines.

<setting name="MailServer" value="smtp.sendgrid.net" />

<setting name="MailServerUserName" value="apikey" />

<setting name="MailServerPassword" value="4565655676hkjsd7868jkhkj" />

<setting name="MailServerPort" value="587" />


Save your changes.

If you are using SSL security, you must also add the following setting to the configuration file \site\wwwroot\Web.config:


  <system.net>

    <mailSettings>

      <smtp from="noreply@example.com">

        <network host="smtp.sendgrid.net" password="4565655676hkjsd7868jkhkj" userName="apikey" port="587" />

      </smtp>

    </mailSettings>

  </system.net>

</configuration>

 
Save your changes.

You need to change the sender of the Forgot your Password email to a valid email address. You can also edit the subject and content of the email. To do this, follow these steps:

  • Log in to Sitecore as an administrator.
  • In the Launchpad, open the Desktop, and select the Core database.
  • In the Content Editor, navigate to /sitecore/system/Settings/Security/Password recovery/Password Recovery Email.
  • Enter a valid email address in the Sender email address field, and change the other fields as you need.

Sitecore Forgot Password configuration

Now if any user forgot his password, 

  • Visit to /sitecore/login page. 
  • Click on "Forgot your password?"
  • Enter Sitecore user name
  • Click on Send button

You should receive a email with username with newly generated password.




Wednesday, March 10, 2021

Sitecore Hackathon 2021 - CSV to YML Generator for JSS App

Happy to share that our SAM team participated in Sitecore Hackathon 2021 on Sat 6 Mar. We started our day at 6 AM and finished it around 10 PM.

Out of 4 different problem categories, we selected one of the category “Best use of Headless using JSS or .NET” as our problem statement.

We have developed CSV to YML Generator for JSS App. It works like a charm.

 

Architecture Diagram

CSV To YML Generator


Sharing below reference links for this module.

 

I deliberately skipping all module details here in the hope that you will watch the video 😉.

Love to hear your comment(s), feedback(s) or suggestion(s).

Result will be announced in upcoming weeks. Till that time - stay tuned.

Wednesday, December 2, 2020

1 Dec 2020 - Special day - 0.5 million

1st Dec 2020 was special day for my personal blog website where Total Page views crossed 0.5 million count.

I started to note down my learning notes since I started my carrier. One fine day in May 2010, these notes converted into this blog site. Since then my technical journey is still continuing ...

Thanks for each and everyone. I hope you got it what you are looking for at this place. 

Any suggestion or improvements are most welcome!!!


Million Page Views count