From 5679b87cec1255e37176ed50a298483ad42291e4 Mon Sep 17 00:00:00 2001 From: Xander Bil <47951455+xerbalind@users.noreply.github.com> Date: Wed, 2 Oct 2024 18:58:30 +0200 Subject: [PATCH] fix users_list url (#297) --- src/controllers/users_controller.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/users_controller.rs b/src/controllers/users_controller.rs index c50d689..edd8f51 100644 --- a/src/controllers/users_controller.rs +++ b/src/controllers/users_controller.rs @@ -484,6 +484,7 @@ pub async fn confirm_email_post<'r>( form: Form, mailer: &State, admin_email: &State, + conf: &'r State, db: DbConn, ) -> Result, impl Responder<'r, 'static>>> { if let Some(user) = @@ -491,7 +492,7 @@ pub async fn confirm_email_post<'r>( { let user = user.confirm_email(&db).await?; - let user_list_url = uri!(list_users); + let user_list_url = uri!(conf.base_url(), list_users); mailer.try_create( admin_email.0.clone(), String::from("[Zauth] New user registration"),