aaronrenner / phx_gen_auth

An authentication system generator for Phoenix 1.5 applications.
774 stars 56 forks source link

signed_in_path uses the previous conn #117

Closed arnaub closed 3 years ago

arnaub commented 3 years ago

I'm not sure it's a bug, but currently the signed_in_path method is called using the pre-change conn.

In my case I need to get the current user to redirect to the correct path and I need the new user_token.

josevalim commented 3 years ago

In this case, I would pass the user and the token as arguments to signed_in_path. :) This is a change you can do locally. In any case, thanks for the PR!

arnaub commented 3 years ago

Thanks for you answer.

I don't understand why we use the "old" conn. Maybe I'm missing something