mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-04 13:03:37 +00:00
this didn't work, reverting
This commit is contained in:
1 parent
1b83966c26
commit
f14b0d1ac9
1 file changed
+5
-5
@@ -92,12 +92,12 @@ module.exports = eggspress(['/signup'], {
|
||||
body: req.body,
|
||||
};
|
||||
|
||||
// const svc_event = Context.get('services').get('event');
|
||||
// await svc_event.emit('puter.signup', event)
|
||||
const svc_event = Context.get('services').get('event');
|
||||
await svc_event.emit('puter.signup', event)
|
||||
|
||||
// if ( ! event.allow ) {
|
||||
// return res.status(400).send(event.error ?? 'You are not allowed to sign up.');
|
||||
// }
|
||||
if ( ! event.allow ) {
|
||||
return res.status(400).send(event.error ?? 'You are not allowed to sign up.');
|
||||
}
|
||||
|
||||
// check if user is already logged in
|
||||
if ( req.body.is_temp && req.cookies[config.cookie_name] ) {
|
||||
|
||||
Reference in new issue
Block a user