daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. // ... some code that processes the password reset request.
  3. //
  4.  
  5. var token = new UserUrlToken()
  6. {
  7.     UserId = USER_ID
  8. };
  9.  
  10. var url = new QueryStringUrlTokenUrlProvider<TestIdUrlToken>()
  11. {
  12.     QueryStringKey = "token",
  13.     Url = new Uri("URL_TO_PASSWORD_RESET_PAGE")
  14. }.UrlFromToken(token);
  15.  
  16. //
  17. // ... some code that places "url" into the body of the email.
  18. //
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top