fix: keep settings links on profile and fill the project table (#887)

This commit is contained in:
Thomas Durieux authored and GitHub committed 2026-10-09 13:20:27 +01:00
1 parent c67d8ec3b2
commit 7319a5a744
10 files changed
+152 -25

No files matched your search

+9
View File
@@ -194,6 +194,15 @@ router.use("/connections", (req, res, next) => {
next();
});
router.get("/connections/email", async (req, res) => {
try {
const user = await getUser(req);
const csrf = connectionCSRF(req);
await saveSession(req);
res.json({ csrf, notificationEmail: notificationEmail(user.model.emails, user.model.notificationEmail) });
} catch (error) { handleError(error, res, req); }
});
router.post("/connections/email", async (req, res) => {
try {
const user = await getUser(req);