From 24cb1abead7d737fc894f379a4bdb2291dad9492 Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Sun, 29 Sep 2024 23:04:22 +0200 Subject: [PATCH] fix users_list url --- 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 c4b1187..4204925 100644 --- a/src/controllers/users_controller.rs +++ b/src/controllers/users_controller.rs @@ -479,6 +479,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) = @@ -486,7 +487,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"),