From 5710c3880be86b6b9224cd99c53266cfa5d4e65e Mon Sep 17 00:00:00 2001 From: Austin Date: Wed, 29 Mar 2023 14:19:04 +0000 Subject: [PATCH] Fix password reset redirection --- app/src/components/app.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/components/app.rs b/app/src/components/app.rs index 36a6308..3d03afb 100644 --- a/app/src/components/app.rs +++ b/app/src/components/app.rs @@ -177,7 +177,13 @@ impl App { Some(AppRoute::StartResetPassword | AppRoute::FinishResetPassword { token: _ }), _, _, - ) if self.password_reset_enabled == Some(false) => Some(AppRoute::Login), + ) => { + if self.password_reset_enabled == Some(false) { + Some(AppRoute::Login) + } else { + None + } + } (None, _, _) | (_, None, _) => Some(AppRoute::Login), // User is logged in, a URL was given, don't redirect. (_, Some(_), Some(_)) => None,