Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making after confirmation redirections configurable #436

Open
augnustin opened this issue Feb 24, 2020 · 1 comment
Open

Making after confirmation redirections configurable #436

augnustin opened this issue Feb 24, 2020 · 1 comment

Comments

@augnustin
Copy link

For now, in https://github.com/augnustin/pow/blob/master/lib/extensions/email_confirmation/phoenix/controllers/confirmation_controller.ex redirection routes are hard coded:

  defp redirect_to(conn) do
    case Pow.Plug.current_user(conn) do
      nil   -> routes(conn).session_path(conn, :new)
      _user -> routes(conn).registration_path(conn, :edit)
    end
  end

Shouldn't those be configurable just like after_sign_in_path etc.?

@danschultzer
Copy link
Collaborator

I haven't decided how extensions callback routes should work yet #141, and you can still override the routes by customizing path_for/5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants