Professional Web Applications Themes

Good Forgot Password Script? - PHP Development

Anyone have a good script to provide users with the opportunity to have their password changed, and then the new one emailed to them?...

Sponsored Links
  1. #1

    Default Good Forgot Password Script?

    Anyone have a good script to provide users with the opportunity to have
    their password changed, and then the new one emailed to them?



    Sponsored Links
    entoone Guest

  2. #2

    Default Re: Good Forgot Password Script?

    > Anyone have a good script to provide users with the opportunity
    > to have their password changed, and then the new one emailed to them?
    I just did one. I won't provide the whole damn code, but here's a sketch
    of how it works:

    (I assume Your user has an account with a unique username and a mail
    address. Otherwise this won't work. No new mail address will be accepted
    when requesting a new password, of course.)

    1. User provides his username in sendpassword.php
    2. sendpassword.php does:
    * insert username and new random password into a separate
    table (not the usertable!)
    * send link to ->changepassword.php with username and new
    password to mail address from usertable,
    commenting that someone (not necessarily the account owner)
    has applied for a new password.
    3. changepassword.php accepts username and newpassword,
    deletes values from temp table and sets new password value
    (md5()!)
    If You're really nice, provide an input field to change the
    random password instantly to a personal password.

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!
    Security issues:
    * All Your password fields are md5 encrypted
    * use https, if You can
    * use a routine to expire the temp values in a set interval of,
    say, 24 hours
    * If Your user's data is /very/ delicate, _do_not_use_this_method_!
    (Mail is not safe)
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!

    (anyone have improvements?)

    Enjoy coding!

    rudi

    Rudolf Horbas Guest

  3. #3

    Default Protected Links

    Quote Originally Posted by entoone View Post
    Anyone have a good script to provide users with the opportunity to have
    their password changed, and then the new one emailed to them?
    Hi,
    A premium standardized “forgot password” script is available at codecanyon. more details available on sixthlife.net

    Thanks,
    Anu
    sixthlife Guest

Similar Threads

  1. Forgot ColdFusion Administrator password
    By mxstu in forum Coldfusion Server Administration
    Replies: 5
    Last Post: October 10th, 11:08 PM
  2. Forgot CF Admin password-what do I do?
    By lgschulz in forum Coldfusion Server Administration
    Replies: 3
    Last Post: June 27th, 04:36 AM
  3. adminastator password forgot
    By mark in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 20th, 08:47 PM
  4. administrator who forgot his password/username
    By john patrick in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 6th, 05:34 AM
  5. i am administrator and i forgot my password?
    By Jupiter Jones [MVP] in forum Windows Setup, Administration & Security
    Replies: 0
    Last Post: July 6th, 05:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139