1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-26 04:03:03 +01:00

rename SMTPConfigurations to EmailConfiguration

This commit is contained in:
Puyodead1 2023-01-21 11:30:40 -05:00 committed by Puyodead1
parent 689b710c9e
commit 01103268c3
5 changed files with 8 additions and 7 deletions

View File

@ -21,6 +21,7 @@ import {
CdnConfiguration,
ClientConfiguration,
DefaultsConfiguration,
EmailConfiguration,
EndpointConfiguration,
ExternalTokensConfiguration,
GeneralConfiguration,
@ -35,7 +36,6 @@ import {
RegisterConfiguration,
SecurityConfiguration,
SentryConfiguration,
SMTPConfiguration,
TemplateConfiguration,
} from "../config";
@ -59,5 +59,5 @@ export class ConfigValue {
sentry: SentryConfiguration = new SentryConfiguration();
defaults: DefaultsConfiguration = new DefaultsConfiguration();
external: ExternalTokensConfiguration = new ExternalTokensConfiguration();
smtp: SMTPConfiguration = new SMTPConfiguration();
email: EmailConfiguration = new EmailConfiguration();
}

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export class SMTPConfiguration {
export class EmailConfiguration {
host: string | null = null;
port: number | null = null;
secure: boolean | null = null;

View File

@ -18,12 +18,13 @@
import {
DateOfBirthConfiguration,
EmailConfiguration,
PasswordConfiguration,
RegistrationEmailConfiguration,
} from ".";
export class RegisterConfiguration {
email: EmailConfiguration = new EmailConfiguration();
email: RegistrationEmailConfiguration =
new RegistrationEmailConfiguration();
dateOfBirth: DateOfBirthConfiguration = new DateOfBirthConfiguration();
password: PasswordConfiguration = new PasswordConfiguration();
disabled: boolean = false;

View File

@ -20,6 +20,7 @@ export * from "./ApiConfiguration";
export * from "./CdnConfiguration";
export * from "./ClientConfiguration";
export * from "./DefaultsConfiguration";
export * from "./EmailConfiguration";
export * from "./EndpointConfiguration";
export * from "./ExternalTokensConfiguration";
export * from "./GeneralConfiguration";
@ -34,6 +35,5 @@ export * from "./RegionConfiguration";
export * from "./RegisterConfiguration";
export * from "./SecurityConfiguration";
export * from "./SentryConfiguration";
export * from "./SMTPConfiguration";
export * from "./subconfigurations";
export * from "./TemplateConfiguration";

View File

@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export class EmailConfiguration {
export class RegistrationEmailConfiguration {
required: boolean = false;
allowlist: boolean = false;
blocklist: boolean = true;