mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
aac95c2b2e
* Add SMTP_SERVICE environment variable for well-known services * Fix PR #8777: Restore code in teams.ts and users.ts * The rest of the work * fix validation --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom.moor@gmail.com>
15 lines
375 B
TypeScript
15 lines
375 B
TypeScript
import env from "@server/env";
|
|
import { Hook, PluginManager } from "@server/utils/PluginManager";
|
|
import config from "../plugin.json";
|
|
import router from "./auth/email";
|
|
|
|
const enabled = !!(env.SMTP_HOST || env.SMTP_SERVICE) || env.isDevelopment;
|
|
|
|
if (enabled) {
|
|
PluginManager.add({
|
|
...config,
|
|
type: Hook.AuthProvider,
|
|
value: { router, id: config.id },
|
|
});
|
|
}
|