Skip to content

Commit

Permalink
Apply verification bypass option for oauth tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Jan 30, 2024
1 parent 04e4adb commit 736d557
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Models/OAuth/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ private function setVerifiedState(): void
{
// client credential doesn't have user attached and auth code is
// already verified during grant process
$this->verified ??= $this->user === null || !$this->client->password_client;
$this->verified ??= $GLOBALS['cfg']['osu']['user']['bypass_verification']
|| $this->user === null
|| !$this->client->password_client;
}
}

0 comments on commit 736d557

Please sign in to comment.