Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Girish 7 posts 37 karma points
    Apr 15, 2013 @ 14:18
    Girish
    0

    Not getting correct last password changed date for cms member?

    Hi,

    I am using uCommerce with the cms member. For the forgot password password link validation i want the last password changed date for the required member but it gives wrong date as current date time value.

    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

    }

    Any Idea?

     

    Thanks

    Girish

  • Charles Afford 1163 posts 1709 karma points
    Apr 15, 2013 @ 15:28
    Charles Afford
    100

    Hi, i just tried this on a build i have and getting the same issue :).  When did you last change the password for the user?

    Charlie.  I am guessing its the way in which we are asking for the date out of the method.  Might be worth rasing a bug if you cannot find a solution to it.  I would send a tweet out with #umbraco see if anyone has any ideas :)

Please Sign in or register to post replies

Write your reply to:

Draft