From 95469da4f879cef0254af09c16a6a9eae31f7caf Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 12 Jan 2025 03:15:13 +0100 Subject: [PATCH] fix --- src/auth/csrf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/csrf.rs b/src/auth/csrf.rs index 55a6cd3..c7beb59 100644 --- a/src/auth/csrf.rs +++ b/src/auth/csrf.rs @@ -15,7 +15,7 @@ impl CSRF for User { /// /// This is useful for htmx requests to update the CSRF token in place. async fn update_csrf(&self) -> PreEscaped { - html! { script { (format!("document.querySelectorAll('.csrf').forEach(element => {{ element.value = '{}'; }});", self.get_csrf().await)) }; } + html! { script { (PreEscaped(format!("document.querySelectorAll('.csrf').forEach(element => {{ element.value = '{}'; }});", self.get_csrf().await))) }; } } /// Get CSRF Token for the current session