From 08a879bbb1fffbeef4a926a939d615792e72ca78 Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Sun, 19 Jun 2022 14:41:41 -0700 Subject: [PATCH] Fix auth URL condition (#377) --- 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 5d5c9a03c..2eee4449e 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); }