Skip to content

Commit f14b0d1

Browse files
committed
this didn't work, reverting
1 parent 1b83966 commit f14b0d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/src/routers/signup.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ module.exports = eggspress(['/signup'], {
9292
body: req.body,
9393
};
9494

95-
// const svc_event = Context.get('services').get('event');
96-
// await svc_event.emit('puter.signup', event)
95+
const svc_event = Context.get('services').get('event');
96+
await svc_event.emit('puter.signup', event)
9797

98-
// if ( ! event.allow ) {
99-
// return res.status(400).send(event.error ?? 'You are not allowed to sign up.');
100-
// }
98+
if ( ! event.allow ) {
99+
return res.status(400).send(event.error ?? 'You are not allowed to sign up.');
100+
}
101101

102102
// check if user is already logged in
103103
if ( req.body.is_temp && req.cookies[config.cookie_name] ) {

0 commit comments

Comments
 (0)