Forums

What code stops activation links after 5 days without being clicked? (10 posts)

  1. Johnny T
    Member
    Posted 2 years ago #

    Hi
    I want to 'time' something on my website. I know that WordPress says that activation links are only valid for 5 days. How does it determine whether a link is over 5 days old or not? Does it just do a compare on the current date vs the date in the wp_users table or is there something else?
    Also, does anyone know in which file (and what function) this compare takes place?
    It would give me a big head start writing my own code if I had an example to go off.
    Many thanks for any help you can give me

    John ;-)

  2. whooami
    Member
    Posted 2 years ago #

    im curious where or how you've determined that those links are only valid for 5 days.

    Ive never tested that, and it would take 5 days to do so ..

  3. Johnny T
    Member
    Posted 2 years ago #

    It says it on the registration email, at least it does on mine...

  4. whooami
    Member
    Posted 2 years ago #

    hmm, on what registration email? the one that you get after registering?

    All i get is a url a login name and a password.

  5. Johnny T
    Member
    Posted 2 years ago #

    Yep. On my site when you register an email says that the activation link is only valid for 5 days. Is that just my site then?? If so, it isn't a problem I'll just write the code myself.

  6. whooami
    Member
    Posted 2 years ago #

    umm, wordpress doesnt send an activation link when you register. it sends a password.

    the ONLY reason you would need an activation link during registration were if you were allowing ppl to pick their passwords, as that negates the email verification that takes place by the passwd being sent..

    know what I mean?

    i think maybe thats what youre seeing.

  7. Johnny T
    Member
    Posted 2 years ago #

    Yes. I allow users to pick their passwords when they register. They then get the email that makes them confirm their email addy.

  8. whooami
    Member
    Posted 2 years ago #

    ok, well there you go -- the plugin youre using for that has the code you need to look at then :)

  9. Johnny T
    Member
    Posted 2 years ago #

    Thanks for that, sorry for the confusion.

  10. whooami
    Member
    Posted 2 years ago #

    no worries :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.