Guest User

Untitled

a guest
Jun 13th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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. //
Add Comment
Please, Sign In to add comment