diff --git a/admin_frontend/src/web_api.rs b/admin_frontend/src/web_api.rs index 71bbed5c..fb33b9ff 100644 --- a/admin_frontend/src/web_api.rs +++ b/admin_frontend/src/web_api.rs @@ -244,7 +244,11 @@ pub async fn login_handler( .sign_up_with_referrer( ¶m.email, ¶m.password, - Some(&get_base_url(&header_map)), + Some(&get_header_value_or_default( + &header_map, + "host", + "localhost", + )), ) .await;