mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-16 19:47:34 +01:00
feat: nicer error handling for bad jwt in unsubscribe template
This commit is contained in:
@@ -149,10 +149,12 @@ settingsController.unsubscribe = async (req, res) => {
|
||||
}
|
||||
await doUnsubscribe(payload);
|
||||
res.render('unsubscribe', {
|
||||
payload: payload,
|
||||
payload,
|
||||
});
|
||||
} catch (err) {
|
||||
throw new Error(err);
|
||||
res.render('unsubscribe', {
|
||||
error: err.message,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user