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: {
host: '',
port: '',
proxy: '',
user: '',
passwd: '',
dkim: '',

View File

@ -108,7 +108,10 @@ function selectRaceOption(level: Level, choice: number)
return;
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
{

View File

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