Fix character first level being pickable twice and add mail proxy

This commit is contained in:
Peaceultime 2025-04-22 20:57:59 +02:00
parent 598cf54bc5
commit 0771d5ebd1
6 changed files with 9 additions and 3 deletions

BIN
db.sqlite

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -141,6 +141,7 @@ export default defineNuxtConfig({
mail: { mail: {
host: '', host: '',
port: '', port: '',
proxy: '',
user: '', user: '',
passwd: '', passwd: '',
dkim: '', dkim: '',

View File

@ -108,7 +108,10 @@ function selectRaceOption(level: Level, choice: number)
return; return;
if(character.progress.race.progress === undefined) if(character.progress.race.progress === undefined)
character.progress.race.progress = []; character.progress.race.progress = [[1, 0]];
if(level == 1)
return;
for(let i = 1; i < level; i++) //Check previous levels as a requirement for(let i = 1; i < level; i++) //Check previous levels as a requirement
{ {

View File

@ -28,16 +28,18 @@ const transport = nodemailer.createTransport({
pool: true, pool: true,
host: config.mail.host, host: config.mail.host,
port: config.mail.port, port: config.mail.port,
secure: true, secure: config.mail.port === "465",
auth: { auth: {
user: config.mail.user, user: config.mail.user,
pass: config.mail.passwd, pass: config.mail.passwd,
}, },
tls: { rejectUnauthorized: config.mail.port !== "465" },
dkim: { dkim: {
domainName: domain, domainName: domain,
keySelector: selector, keySelector: selector,
privateKey: dkim, privateKey: dkim,
} },
proxy: config.mail.proxy,
}); });
if(process.env.NODE_ENV === 'production') if(process.env.NODE_ENV === 'production')