title: Rails, devise (4.2.0, 4.0.3) - Unlock token is invalid
body: <p>Here is my <code>unlock_instructions.html.erb</code> code:</p>
  
  <pre><code>&lt;p&gt;Hello &lt;%= @resource.email %&gt;!&lt;/p&gt;
  
  &lt;p&gt;Your account has been locked due to an excessive number of unsuccessful sign in attempts.&lt;/p&gt;
  
  &lt;p&gt;Click the link below to unlock your account:&lt;/p&gt;
  
  &lt;p&gt;&lt;%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I am getting this link by email: <code>http://my-corporate-care.herokuapp.com/users/unlock?unlock_token=YKBToxBnBYhfbtrC_5XH</code></p>
  
  <p>Which is giving me an error like in the picture.</p>
  
  <p><a href="https://i.stack.imgur.com/Qqejk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qqejk.png" alt="enter image description here"></a></p>
  
  <p>Don't know how to fix it since my code looks updated based on other posts I fetched?</p>
  
  <p>For comparison, forgot password link works.</p>