title: asp.net Identity - GeneratePasswordResetTokenAsync Method When Passed to View Token Changes?
body: <p>When I use the usermanager to generate a password reset token, once this gets passed to the razor view the token is changing.</p>
  
  <p>An example is:</p>
  
  <pre><code> var resetToken = await userManager.GeneratePasswordResetTokenAsync(userId);
  
              if (registerSuccess)
              {
                  var model = new ResetModel { Token = resetToken, UserId = userId };               
                  return this.View(model);          
              }  
  </code></pre>
  
  <p>I can see when debugging that the value of the reset token is</p>
  
  <p>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAmfrU4hd3Q0WLiANC7DsekQAAAAACAAAAAAADZgAAwAAAABAAAAB1Q/FgOVgsh+0SsLLYSKrFAAAAAASAAACgAAAAEAAAAFMVfXSy24PLGHSoIqFO/YRAAAAAYll/7E8QwrH5JEfhMKGVHNe4CZM3TFWVL4lRE7Jhm/I6CKkTdloHofac054Ergy7BtwtV9OM7ila3f/ti90iDBQAAABAfR8pdGZ2eBXq/sGw0qVP6PQlWg==</p>
  
  <p>But then once this rendered on the view it has changed to </p>
  
  <p>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAmfrU4hd3Q0WLiANC7DsekQAAAAACAAAAAAADZgAAwAAAABAAAACDU0qQzkc65kQa58ift5NBAAAAAASAAACgAAAAEAAAAGGy5Flp6xtR7cGZkvRoNNpAAAAAha1iP7uXqD6KSKbWBOfdXM1KaZnOekiYTSad6/zkejoCk5cDd1FK/JdxKS0Rx9rHeqTJpZkzeEmh5HI3//cLixQAAAAJFOivgVuhoOXTMZMeY+AlLzmifQ==</p>
  
  <p>The view code looks like:</p>
  
  <pre><code> @Html.HiddenFor(x =&gt; x.Token)
  </code></pre>
  
  <p>I'm at a total loss whats going off here. Does anyone know whats happening? Why is the token changing once it's rendered to the view?</p>