asp.net mvc 4 - ASP MVC - WebSecurity - SimpleMemberShip - getting PasswordVerificationTokenExpirationDate by API -


i use websecurity api , simplemembership serving accounts in mvc4 app. 1 of task reset user password. simplemembership serves through method generatepasswordresettoken(). besides puts expiration date token.

i can not find appropriate method getting expiration date (passwordverificationtokenexpirationdate).

anybody found it?

websecurity.resetpassword return bool, , solved problem way:

    public actionresult recover(recover model)     {         var validatetoken = websecurity.resetpassword(model.token, model.password);          if (validatetoken == true)         {             viewbag.message = "password changed.";             return view();         }         modelstate.addmodelerror("", "password not changed.");         return view();     } 

see here: http://msdn.microsoft.com/en-us/library/webmatrix.webdata.websecurity.resetpassword(v=vs.111).aspx


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -