title: Keycloak Forgot password duplicate emails
body: <p>Keycloak sends out duplicate emails when you hit Forgot password button right after user session expired and you want to login again.</p>
  <p>It might be configuration issue with Keycloak but it is quite annoying so any help would be appreciated.</p>
  <p>Keycloak client is set to public and used in combination javascript adapter on mobile app.</p>
  <p>Steps to reproduce:</p>
  <ol>
  <li>Login with your user account using public client.</li>
  <li>Wait for your access token to expire and you will need to login again.</li>
  <li>Go to login page and instead of login hit Forgot password button.</li>
  <li>Enter your email and hit submit.</li>
  <li>You get your first forgot password email.</li>
  <li>You will be redirected to login-page-expired and on &quot;click here&quot; link.</li>
  <li>You get your second password email (which shouldn't happen).</li>
  </ol>
  <p>Used Keycloak version is 12.0.1.</p>