GetUserIdFromPasswordResetToken (WebSecurity Ref)

Gets the user ID from the password reset token. It takes one argument: the reset token.

Example

C#/HTML Code

@{
    
 
var token = Request["token"];//GET TOKEN FROM URL
 
//IF TOKEN IS NULL REDIRECT USER BACK TO HOME PAGE
if (string.IsNullOrEmpty(token))
{
    Response.Redirect("~/");
}
 
}
 
<!DOCTYPE html>
 
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title></title>
    </head>
    <body>
        <!--PRINT OUT THE ID-->
   @WebSecurity.GetUserIdFromPasswordResetToken(token);
 
    </body>
</html>

See Also

GetUserId

GetCreateDate

GetLastPasswordChangeDate

GetLastPasswordFailureDate