Implemented rocket::response::Flash. Create a partial that can be loaded across all pages supporting errors and success messages.
Style messages!
Also - In forms, maybe create a Vec<FlashMessage> and have all the routes take that type. Then iterate through the messages and display them for the form. That way, all validation errors can be displayed at once. ie [ email already taken, passwords must match ]
Implemented
rocket::response::Flash
. Create a partial that can be loaded across all pages supporting errors and success messages.Style messages!
Also - In forms, maybe create a
Vec<FlashMessage>
and have all the routes take that type. Then iterate through the messages and display them for the form. That way, all validation errors can be displayed at once. ie[ email already taken, passwords must match ]