From 07870487c4ffb11865d7485c8fc826c1247fac34 Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Wed, 1 May 2019 18:29:16 +0200 Subject: Return to root when auth succeeds --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auth.rs') diff --git a/src/auth.rs b/src/auth.rs index dbb501d..faf967c 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -147,7 +147,7 @@ fn build_unauthorized_response( } let return_path = match &req.state().random_route { Some(random_route) => format!("/{}", random_route), - None => req.path().to_string(), + None => "/".to_string(), }; renderer::render_error( -- cgit v1.2.3