Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // ... some code that processes the password reset request.
- //
- var token = new UserUrlToken()
- {
- UserId = USER_ID
- };
- var url = new QueryStringUrlTokenUrlProvider<TestIdUrlToken>()
- {
- QueryStringKey = "token",
- Url = new Uri("URL_TO_PASSWORD_RESET_PAGE")
- }.UrlFromToken(token);
- //
- // ... some code that places "url" into the body of the email.
- //
Add Comment
Please, Sign In to add comment