Within a custom authentication flow SPI, you can reset the entire flow simply returning
context.resetFlow();
in e.g. an action method.
However, can you attach a message or attribute when resetting the flow, basically passing it into the Freemarker UI upon reset?