Fix auth URL condition (#377)

This commit is contained in:
Geometrically 2022-06-19 14:41:41 -07:00 committed by GitHub
parent cd514285d9
commit 08a879bbb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}