I followed this guide: https://github.com/mreishus/notebook-pub/blob/master/programming/phoenix/pow/adding-email-confirmation-to-an-api.md
Everything seems to work and I get an email and upon clicking it the expected message:
{"success":{"message":"Email confirmed"}}
The only problem is that in DB, the user row isn’t updated. So there is still email_confirmation_token
filled but email_confirmed_at
stays NULL.
If I use this line manually(in console): PowEmailConfirmation.Ecto.Context.confirm_email(user, %{}, otp_app: :my_app)
it works.
In the screen above, the last one was manually approved and the previous 2 were via link.