From bf19f5b9c09c764987415eaf2d9ce4d939b42d4e Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Sun, 19 Jun 2022 17:20:21 -0700 Subject: [PATCH] Fix auth URL condition again (#378) --- src/routes/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/auth.rs b/src/routes/auth.rs index 2eee4449e..9f90c90e2 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -122,7 +122,7 @@ pub async fn init( let domain = url.domain().ok_or(AuthorizationError::Url)?; if !allowed_callback_urls.iter().any(|x| domain.ends_with(x)) - || domain != "modrinth.com" + && domain != "modrinth.com" { return Err(AuthorizationError::Url); }