- move config requiredVariables to contants
All checks were successful
Code quality checks / biome (push) Successful in 13s
All checks were successful
Code quality checks / biome (push) Successful in 13s
- change register email - add verify route ( mostly still needs to be tested
This commit is contained in:
parent
83b71f62cf
commit
fff3c3ca50
16 changed files with 482 additions and 89 deletions
|
@ -2,11 +2,9 @@ import { isValidEmail } from "./email";
|
|||
import { isValidHostname, isValidPort } from "./general";
|
||||
|
||||
import type { MailerConfig } from "#types/config";
|
||||
import type { simpleConfigValidation } from "#types/lib";
|
||||
|
||||
function validateMailerConfig(config: MailerConfig): {
|
||||
isValid: boolean;
|
||||
errors: string[];
|
||||
} {
|
||||
function validateMailerConfig(config: MailerConfig): simpleConfigValidation {
|
||||
const errors: string[] = [];
|
||||
|
||||
const isValidSMTPAddress = isValidHostname(config.address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue