mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-20 06:37:23 +02:00
fix: keep settings links on profile and fill the project table (#887)
This commit is contained in:
1 parent
c67d8ec3b2
commit
7319a5a744
10 files changed
+152
-25
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user