pub fn get_session_message(session: &Session, is_json: bool) -> (String, String)Expand description
Retrieves and clears the flash message from the session.
Returns a tuple of (message_type, message_text) where type is “success” or “error”.
Set is_json to true for structured JSON messages (used by the sign-in page).