SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2011
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question email authentication

    I am working with forget password in php with my sql,if a user has forget his name ,he can write his name and email id and password is sent to his mail id....how i can do this???? I am working on online PHP web application.

  2. #2
    SitePoint Member
    Join Date
    Sep 2011
    Location
    Birsbane, Australia
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would expect that you would store the users' e-mail address when they register.

    If they request a password reset, you send them an e-mail to confirm this.
    Then you create a new random password, and e-mail that to them.

    I'm sure that there would be PHP code for free if you Google it.

  3. #3
    SitePoint Member
    Join Date
    Dec 2004
    Location
    ponce
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can easily get javascript code to for the email format check. BUT you will also need php code as well to check if the email address actually works. Be sure you get that when you get to Google

  4. #4
    SitePoint Member Dumler's Avatar
    Join Date
    Sep 2011
    Location
    Finland
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoting to MartinPlatt,

    Yeah the basic idea of resetting easily your password is the method where you send user a link (usually which holds user id in the link as a variable) and make a function to reset that user id password and send a new password to his email.

    Very easy to script.

  5. #5
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tamanna View Post
    I am working with forget password in php with my sql,if a user has forget his name ,he can write his name and email id and password is sent to his mail id....how i can do this???? I am working on online PHP web application.
    create a field in your users table called "forgot_pw_hash" that will store a random md5 or encrypted value. when a user clicks on forget password, update the database with this has then email it to them. when they visit a page with the GET variable set to that hash, allow them to change their password.

  6. #6
    SitePoint Enthusiast
    Join Date
    Aug 2011
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gauvion View Post
    create a field in your users table called "forgot_pw_hash" that will store a random md5 or encrypted value. when a user clicks on forget password, update the database with this has then email it to them. when they visit a page with the GET variable set to that hash, allow them to change their password.
    i have made a login table with username and password in md5 form...so i can't use that login table if a user has forget his password...
    i will make a forget table but how it will match with login table

    i am very confused please help...

  7. #7
    SitePoint Enthusiast
    Join Date
    Aug 2011
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you please suggest me a script...

  8. #8
    SitePoint Member Dumler's Avatar
    Join Date
    Sep 2011
    Location
    Finland
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have no clue what you tried to point out there, but here is a script for ya!

    http://www.newthinktank.com/2010/04/...sword-scripts/

    You really should use google by yourself.


Tags for this Thread

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
  •