From e34d84d7fb6c985fe296d5fd893db5fd13219f61 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 8 Nov 2021 20:01:52 +0000 Subject: [PATCH] Fix old use of env var --- src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index 02d16d2..d2283bb 100644 --- a/src/web.rs +++ b/src/web.rs @@ -33,7 +33,7 @@ async fn auth_setup( /* host: String, forwarded_proto: Option, */ state: State, ) -> Result { // let final_redirect_uri = format!("{}://{}/auth_done", forwarded_proto.as_deref().unwrap_or("http"), host); - let final_redirect_uri = std::env::var("MONZO_REDIRECT_URI").unwrap(); + let final_redirect_uri = format!("{}/auth_done", state.config.base_uri); let mut url = Url::parse("https://auth.monzo.com/").unwrap(); url.query_pairs_mut() .append_pair("client_id", &state.config.monzo_client_id)