This commit is contained in:
Eason Goodale
2025-08-11 23:36:16 -07:00
parent 96225c0d8f
commit e5b2703374
+1 -4
View File
@@ -28,10 +28,7 @@ pub const LOGIN_SUCCESS_HTML: &str = include_str!("./success_page.html");
pub const LOGIN_ERROR_HTML: &str = include_str!("./error_page.html");
fn render_error_html(message: &str) -> String {
LOGIN_ERROR_HTML.replace(
"%%MESSAGE%%",
html_escape::encode_text(message).as_ref(),
)
LOGIN_ERROR_HTML.replace("%%MESSAGE%%", html_escape::encode_text(message).as_ref())
}
#[derive(Debug, Clone)]