You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the default action after a user updates any field goes to /registration show page. Which is pretty inflexible. I tried to add password_update override in redirect.ex to catch when a user update the password and send them somewhere else.
This currently doesn't work. it always return /registrations after an update.
def password_update(conn, _) do
redirect(conn, to: dashboard_path(conn, :index))
end
Edit:
After looking at the source code, redirect.ex file has a callback function named registration_update/3, that can be overriden to do custom stuff. This was no in the documentation. Maybe it can be added?
This can be closed now.
The text was updated successfully, but these errors were encountered:
the default action after a user updates any field goes to /registration show page. Which is pretty inflexible. I tried to add password_update override in redirect.ex to catch when a user update the password and send them somewhere else.
This currently doesn't work. it always return /registrations after an update.
Edit:
After looking at the source code, redirect.ex file has a callback function named registration_update/3, that can be overriden to do custom stuff. This was no in the documentation. Maybe it can be added?
This can be closed now.
The text was updated successfully, but these errors were encountered: