First part of user auth is done! If you supply a correct user:pass combo, the app redirects you to /success. Supplying the wrong password redirects you to /fail.
There's one glitch however: an error is thrown and the app crashes if you supply a nonexistent username. That's because the User model doesn't yet do error handling. I'll fix that in the next update.
First part of user auth is done! If you supply a correct user:pass combo, the app redirects you to /success. Supplying the wrong password redirects you to /fail.
There's one glitch however: an error is thrown and the app crashes if you supply a nonexistent username. That's because the User model doesn't yet do error handling. I'll fix that in the next update.