Merge branch 'fix/do-split-migration-for-local-users-only' into 'develop'
[akkoma] / lib / pleroma / web / oauth / oauth_controller.ex
index 4d4e858361e5859b6b471e684c65bc8848d07889..8ec963c79f557e2000e49e21ed1f8511dd3c891e 100644 (file)
@@ -37,6 +37,7 @@ defmodule Pleroma.Web.OAuth.OAuthController do
          true <- Pbkdf2.checkpw(password, user.password_hash),
          {:auth_active, true} <- {:auth_active, User.auth_active?(user)},
          %App{} = app <- Repo.get_by(App, client_id: client_id),
+         true <- redirect_uri in String.split(app.redirect_uris),
          {:ok, auth} <- Authorization.create_authorization(app, user) do
       # Special case: Local MastodonFE.
       redirect_uri =