Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP PHP User Authentication Adding Authentication to Your Application Reset Password

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,705 Points

Can anyone help me work out what's going on?

I'm back with the authentication website again.

I managed to get some of the Flash messages working on localhost. When I left it last night, everything was working except the actual changing of the password.

I was all set to try and fix that when I opened the local server again and suddenly the login wasn't working at all... simply redirected back to the login screen with no flash messages.

I have no idea why this is as when I tested it before committing the change I was at least able to log in. Even if I revert to the last commit the redirect behaviour remains.

Then when I tried to test on my server the site didn't show up at all and only loads as far as the bootswatch file.


<!doctype html>
<html lang="en">
        <meta charset="UTF-8">
        <meta name="viewport"
              content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Book Voting System</title>

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cyborg/bootstrap.min.css">


Project runs on a php_auth directory as the root.