我正在使用 uCommerce 和 cms 成员。对于忘记密码的密码链接验证,我想要所需成员的最后一次密码更改日期,但它给出了错误的日期作为当前日期时间值。
String userName = Membership.GetUserNameByEmail(email);
MembershipUser membershipUser = Membership.GetUser(userName);
if (membershipUser.LastPasswordChangedDate > date)
{
----- validation Where date is the datetime when user request forgot password request and link will sent to him
---- but all the time LastPasswordChangedDategetting current date time, so can not able to set the validation
}
任何想法?
谢谢
吉里什