Skip to content

Commit ea3845c

Browse files
committed
Remove manual user update function
1 parent 46d7f17 commit ea3845c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,6 @@ function getUserRole(session) {
108108
return 'user';
109109
};
110110

111-
// function setUser(newUser = {}) {
112-
// if (!newUser.id) return user = {};
113-
// user = newUser;
114-
// };
115-
116111
app.get('/', async (req, res) => {
117112
if (!on) return res.render('off', { tenant, title: 'Activation - ' });
118113
if (!req.session) return res.render('session', { tenant, title: 'Session - ' });
@@ -170,6 +165,5 @@ module.exports = {
170165
routes: app,
171166
init,
172167
activate,
173-
on: activate,
174-
// setUser
168+
on: activate
175169
};

0 commit comments

Comments
 (0)