-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
User registration no longer showing "please confirm email" flash message when registering user. #140
Comments
How does the logic for printing info/error flash look like in |
Oh, I have a suspicion that this may be because users are redirected to |
I've a proper fix for #117 up in #141. It'll default to the defmodule MyAppWeb.Pow.Routes do
use Pow.Phoenix.Routes
use Pow.Extension.Phoenix.Routes,
extension: [PowEmailConfirmation]
alias MyAppWeb.Router.Helpers, as: Routes
def pow_email_confirmation_after_halted_registration_path(conn), do: Routes.some_path(conn, :index)
end This gives you full granular control, and may help you set up the routes so users are not redirected multiple times. |
Hi Dan, Sorry I couldn't get back soon, I was sleeping and it's morning now haha. I've been looking into the issue and I think it might have something to possibly do with some code/library I've used (although I struggle to understand why or which one)? I know I've added the {:recaptcha, ""} library, and when I git stash everything the message shows again. I've added a lot of template logic, but none of it touches any of the login/registration templates. The odd thing is that the message still doesn't show when I comment absolutely everything out of the changes I've made, so I'm a bit baffled as to why it's not working. I've just stashed everything and will iteratively start again. I'll update you if I find the code that's interfering. |
Oh, and I wasn't even adding the :recaptcha library to the sign in form, it was for a completely different contact form. |
Also, I have the flash/error inside the session/new template (and possibly the same for registration as well), rather than in the layout. It's been working so far, so I'm not sure if that's the issue.
|
Does your root route at "/" require authentication? |
It doesn't, no. I've added most of the logic back after the git stash, including the recaptcha library and everything seems fine. Really odd. Maybe it had something to do with mix.lock or something, but yeah, very odd. |
Oh, that's really weird. I'll close this issue for now then, please do let me know if you experience the issue again, or figure out what caused it. |
I've installed the PowEmailConfirmation extension and after a new registration, I've expected the user to be redirected to I'm redirected to the root page. I'm following your fix above, but I get this compilation error: Renaming to This is my routes.ex file:
I've added the
but it results in this error:
config.exs:
endpoint.ex
|
You just need to change For This is what you would set up currently to get it working: defmodule SfusatoWeb.Pow.Routes do
use Pow.Phoenix.Routes
alias SfusatoWeb.Router.Helpers, as: Routes
def after_registration_path(conn) do
Routes.pow_session_path(conn, :new)
end
def after_sign_in_path(conn) do
if Pow.Plug.current_user(conn),
do: "/",
else: Routes.pow_session_path(conn, :new)
end
end I have added the |
Yiikes, I have no idea how I didn't spot the Thank you. Everything works as expected. |
Hi!
I suppose this question is more of a "if you're run into it, then happy to feel your thoughts.
Essentially, when I register a user, it will take you to the sign in page - however now it doesn't have the message to tell you to check your email to confirm. Does anyone have any possibly ideas why? I'm using all the standard routes and configurations.
The text was updated successfully, but these errors were encountered: