fix: Do not require SMTP_USERNAME for email auth to be enabled
closes #6885
This commit is contained in:
@@ -3,7 +3,7 @@ import { Hook, PluginManager } from "@server/utils/PluginManager";
|
|||||||
import config from "../plugin.json";
|
import config from "../plugin.json";
|
||||||
import router from "./auth/email";
|
import router from "./auth/email";
|
||||||
|
|
||||||
const enabled = (!!env.SMTP_HOST && !!env.SMTP_USERNAME) || env.isDevelopment;
|
const enabled = !!env.SMTP_HOST || env.isDevelopment;
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
PluginManager.add({
|
PluginManager.add({
|
||||||
|
|||||||
Reference in New Issue
Block a user