From a796d8064fefb4fa306974d9b5d16e336d00e550 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 9 May 2024 17:23:09 +0700 Subject: [PATCH] Add file --- sources/patches/diff.txt | 20 ++++++++++++++++++++ sources/patches/main-02-visitor.patch | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/sources/patches/diff.txt b/sources/patches/diff.txt index b80c9d8..4bdbb0b 100644 --- a/sources/patches/diff.txt +++ b/sources/patches/diff.txt @@ -242,6 +242,26 @@ index 000000000..6fca14d54 + +export default router; \ No newline at end of file +diff --git a/plugins/req/server/index.ts b/plugins/req/server/index.ts +new file mode 100644 +index 000000000..68081fb65 +--- /dev/null ++++ b/plugins/req/server/index.ts +@@ -0,0 +1,14 @@ ++import { PluginManager, Hook } from "@server/utils/PluginManager"; ++import config from "../plugin.json"; ++import router from "./auth/req"; ++ ++const enabled = true; ++ ++if (enabled) { ++ PluginManager.add({ ++ ...config, ++ type: Hook.AuthProvider, ++ value: { router, id: config.id }, ++ name: config.name, ++ }); ++} diff --git a/server/emails/mailer.tsx b/server/emails/mailer.tsx index f53e44b6b..bcf56efca 100644 --- a/server/emails/mailer.tsx diff --git a/sources/patches/main-02-visitor.patch b/sources/patches/main-02-visitor.patch index 06643a2..b87fabb 100644 --- a/sources/patches/main-02-visitor.patch +++ b/sources/patches/main-02-visitor.patch @@ -98,6 +98,26 @@ index 000000000..6fca14d54 +} + +export default router; +diff --git a/plugins/req/server/index.ts b/plugins/req/server/index.ts +new file mode 100644 +index 000000000..68081fb65 +--- /dev/null ++++ b/plugins/req/server/index.ts +@@ -0,0 +1,14 @@ ++import { PluginManager, Hook } from "@server/utils/PluginManager"; ++import config from "../plugin.json"; ++import router from "./auth/req"; ++ ++const enabled = true; ++ ++if (enabled) { ++ PluginManager.add({ ++ ...config, ++ type: Hook.AuthProvider, ++ value: { router, id: config.id }, ++ name: config.name, ++ }); ++} diff --git a/yarn.lock b/yarn.lock index c47df111a..3d7a8e387 100644 --- a/yarn.lock