User authentication in Phoenix?

@smpallen99

Yeah, I see. But in my router locale plug comes to work first and redirects such paths to /:locale/… paths. For localized protected paths I have

   scope "/:locale", as: :locale do
    pipe_through :protected
    coherence_routes :protected
    
    scope "/", MyProject.Web do
    # Add protected routes below
    end    
  end   

As for my second question about creating complex form for registering user and at the same time adding some content to my site, I’ve looked into coherence source, as you told me, particularly into RegistrationController and found that to register new user and send him a confirmation email there are two functions used, changeset and send_confirmation, both located in Coherence.ControllerHelpers, which do exactly what I need, thank you one more time!