Fix character first level being pickable twice and add mail proxy
This commit is contained in:
parent
598cf54bc5
commit
0771d5ebd1
BIN
db.sqlite-shm
BIN
db.sqlite-shm
Binary file not shown.
BIN
db.sqlite-wal
BIN
db.sqlite-wal
Binary file not shown.
|
|
@ -141,6 +141,7 @@ export default defineNuxtConfig({
|
|||
mail: {
|
||||
host: '',
|
||||
port: '',
|
||||
proxy: '',
|
||||
user: '',
|
||||
passwd: '',
|
||||
dkim: '',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue