forked from laysense/laysite
Fix design validation, canonical routes, media headers and favicon
This commit is contained in:
@@ -18,7 +18,7 @@ final class OAuthCredentials
|
||||
public static function store(PDO $pdo, int $layout, string $secret): void
|
||||
{
|
||||
if ($secret === '' || strlen($secret) > 4096 || str_contains($secret, "\0")) {
|
||||
throw new RuntimeException('客户端密钥为空或格式无效。');
|
||||
throw new DesignFieldError('provider_secret', '客户端密钥为空或格式无效。');
|
||||
}
|
||||
$revision = bin2hex(random_bytes(16));
|
||||
$nonce = random_bytes(self::NONCE_BYTES);
|
||||
|
||||
Reference in New Issue
Block a user