[pbs-devel] [PATCH proxmox-backup 3/3] REST: don't print CSRF token

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Oct 8 15:37:20 CEST 2020


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 src/server/rest.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/server/rest.rs b/src/server/rest.rs
index 4cfdd6c0..c985ccbd 100644
--- a/src/server/rest.rs
+++ b/src/server/rest.rs
@@ -504,7 +504,6 @@ fn check_auth(
 
     if method != hyper::Method::GET {
         if let Some(token) = token {
-            println!("CSRF prevention token: {:?}", token);
             verify_csrf_prevention_token(csrf_secret(), &userid, &token, -300, ticket_lifetime)?;
         } else {
             bail!("missing CSRF prevention token");
-- 
2.20.1






More information about the pbs-devel mailing list