mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-23 16:19:08 +03:00
9 lines
248 B
JavaScript
9 lines
248 B
JavaScript
|
const { User } = require("../../classes/index");
|
||
|
module.exports = (req, res) => {
|
||
|
|
||
|
if (!req.session.loggedin) return res.redirect('/login');
|
||
|
|
||
|
const user = new User().getId(req.session.userid);
|
||
|
res.render("userEdit", { user })
|
||
|
|
||
|
}
|