Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit dddca3c

Browse files
committed
fix smtp admin side
1 parent b908a64 commit dddca3c

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

frontend/pages/admin/settings.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@
543543
type="password"
544544
class="form-control"
545545
id="pass"
546+
value="<%=dbSettings.smtp_pass%>"
546547
required
547548
/><br />
548549
<button

handlers/api/update_smtp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable camelcase */
22
/* eslint-disable no-mixed-operators */
33
module.exports.load = async function (app, ifValidAPI, ejs) {
4-
app.post("/api/smtp/update", async (req, res) => {
4+
app.post('/api/smtp/update', async (req, res) => {
55
if (req.session.data && req.session.data.panelinfo.root_admin) {
6-
if (typeof req.body !== "object")
6+
if (typeof req.body !== 'object')
77
return res.json({
88
error: process.api_messages.core.bodymustbeanobject,
99
});
@@ -14,7 +14,7 @@ module.exports.load = async function (app, ifValidAPI, ejs) {
1414
const server = req.body.server;
1515
const port = req.body.port;
1616
const user = req.body.user;
17-
const password = req.body.pass;
17+
const password = req.body.password;
1818

1919
const id = process.env.discord.guild;
2020

@@ -28,7 +28,7 @@ module.exports.load = async function (app, ifValidAPI, ejs) {
2828

2929
res.json({
3030
error: process.api_messages.core.noError,
31-
coins: data,
31+
success: true,
3232
});
3333
}
3434
});

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "dashactyl-v1",
3-
"version": "1.0.0",
4-
"description": "The finished version of Dashactyl.",
2+
"name": "fyreactyl",
3+
"version": "1.1.3",
4+
"description": "Fork of dashactyl.",
55
"main": "index.js",
66
"author": "Two",
77
"license": "ISC",

0 commit comments

Comments
 (0)