Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP PHP User Authentication Adding Authentication to Your Application Reset Password

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 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.

https://projects.jonniegrieve.co.uk/php_auth/index.php

<!doctype html>
<html lang="en">
    <head>
        <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">

    </head>
    <body>

Project runs on a php_auth directory as the root.

https://bitbucket.org/jg_digitalMedia/php_auth