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"),