From 8679b1c367d98de60dd78b723fd7f3480fff3a49 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Fri, 22 Jul 2022 14:36:39 +0200 Subject: [PATCH] Fix redirection issue after login --- src/controllers/login_controller.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/login_controller.rs b/src/controllers/login_controller.rs index 4948408..6386515 100644 --- a/src/controllers/login_controller.rs +++ b/src/controllers/login_controller.rs @@ -141,7 +141,7 @@ pub async fn login_route( }; SessionIdentity(id.as_ref()).set_user(&http_req, &user, status); - redirect_user(query.redirect.get()); + return redirect_user(query.redirect.get()); } LoginResult::AccountDisabled => {