This commit is contained in:
lesion
2022-10-31 17:04:31 +01:00
parent 7d0a920eb9
commit 256dca59b1
5 changed files with 7 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ const oauthController = {
*/
async getClient (client_id, client_secret) {
const client = await OAuthClient.findByPk(client_id, { raw: true })
if (client_secret && client_secret !== client.client_secret) {
if (!client || (client_secret && client_secret !== client.client_secret)) {
return false
}