riverrun / phauxth

Not actively maintained - Authentication library for Phoenix, and other Plug-based, web applications
409 stars 20 forks source link

Phoenix.Router.NoRouteError #46

Closed isjaylee closed 6 years ago

isjaylee commented 6 years ago

When you initially enter invalid user credentials, it redirects you back to /sessions/new. Immediately after, you enter in valid user credentials, you are then redirected to /sessions and receive a no route error.

Steps to reproduce:

  1. Create a user (email: "joe@example.com", password: "password")
  2. Go to /sessions/new
  3. Enter invalid credentials (ex: "joe@example.com", password: "foobar")
  4. Receive Invalid credentials error message
  5. Enter valid credentials
  6. You are redirected to /sessions and receive a no route found for GET /sessions error
riverrun commented 6 years ago

Thanks for reporting this. I'll have a look and get back to you as soon as possible.

riverrun commented 6 years ago

I've made these changes to the example app (and similar changes to the installer). I think they should solve this issue.

isjaylee commented 6 years ago

Awesome, it all works. Installer works as well.