Multiple confirmation strategies with interaction
It appears to be impossible to use
require_interaction? true
with more than one confirmation strategy, because using the confirm_route
macro more than once produces a compile-time error.
Am I missing something, or is this a bug?5 Replies
confirm_route
is for the confirmation
addon, not specifically the require_interaction?
optionSolution
but yes, the two routes need to be disambiguated, via the
as
optionAre you sure? Without any calls to
confirm_route
in my router, mix phx.routes
shows,
I deleted the message about the URLs because I realized it was wrong 😅 but using
as
to disambiguate them is correctoh, oops... sorry. 🤦
OK, yeah, that does it. Thanks!