Finished what I started: Tertulia's login pages now override the newly overridable Apollo defaults. I tested them, they work great (well, except the part about Mailgun not working from this domain yet).
Configuring Apollo is super slick now:
apollo = Apollo(
config = ApolloConfig(
csrfTokenKey
),
templates = ApolloTemplates(
auth = (csrf, focus, flash) => html.auth(csrf, focus, flash),
forgotPassword = (csrf, flash) => html.forgotPassword(csrf, flash),
resetPassword = (csrf, error) => html.resetPassword(csrf, error)
),
services = ApolloServices(
user = userService,
confirmation = confirmationService,
mail = mailService,
session = sessionService,
reset = resetService
)
)
AuthRoutes.routes[F, User, Mailgun.Email, UserId](apollo)
Shout out to Claude for the assist converting my hand-written Bootstrap-using templates into nice, clean Twirl.
🎉