10 thoughts on “Designing a secure(ish) login script with PHP and MySQL”

  1. when trying to change the pass i get “The existing password you entered is not correct. Please enter it carefully.” all the time. :/

  2. i have the same problem than cosme when trying to change password i get “The existing password you entered is not correct. Please enter it carefully.”
    also i get those messages:”
    Notice: Undefined index: passMismatch in /opt/lampp/htdocs/www/new/change_form.php on line 3

    Notice: Undefined index: nullPass in /opt/lampp/htdocs/www/new/change_form.php on line 5″

  3. Is this on my site, or on your own with my code? I can’t seem to replicate it on my own site and unfortunately I’m preoccupied with backpacking so I can’t look into it too deeply right now.

  4. I just added a bit of code in the file login_handler.php. I want to create a multi user login where there are admin and user login.

    this is source

    if ($dbhash == crypt($password, $dbhash))
    {
    if ($dbhash[‘level’] == ‘admin’)
    {
    validateUser();
    header(‘Location:/admin/home.php’);
    }
    if ($dbhash[‘level’] == ‘user’)
    {
    validateUser();
    header(‘Location:/user/home.php’);
    }
    }

    but the code does not provide the answers, what can you help me?

  5. I’m also getting the “The existing password you entered is not correct. Please enter it carefully.” message. Is this something to do with permissions on the server?

  6. I receive the following error: `Parse error: syntax error, unexpected T_SR in /home/content/87/11563487/html/phpStuffs/request_reset.php on line 34` trying to reset my password

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s