|
|
@ -111,11 +111,9 @@ app.post('/api/sign_up', async (req, res) => { |
|
|
|
username: req.body.username, |
|
|
|
username: req.body.username, |
|
|
|
password: req.body.password, |
|
|
|
password: req.body.password, |
|
|
|
email: req.body.email, |
|
|
|
email: req.body.email, |
|
|
|
public_email: true, |
|
|
|
|
|
|
|
is_show: syzoj.config.default.user.show, |
|
|
|
is_show: syzoj.config.default.user.show, |
|
|
|
rating: syzoj.config.default.user.rating, |
|
|
|
rating: syzoj.config.default.user.rating, |
|
|
|
register_time: parseInt((new Date()).getTime() / 1000), |
|
|
|
register_time: parseInt((new Date()).getTime() / 1000) |
|
|
|
prefer_formatted_code: true |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
await user.save(); |
|
|
|
await user.save(); |
|
|
|
|
|
|
|
|
|
|
@ -200,11 +198,9 @@ app.get('/api/sign_up_confirm', async (req, res) => { |
|
|
|
username: obj.username, |
|
|
|
username: obj.username, |
|
|
|
password: obj.password, |
|
|
|
password: obj.password, |
|
|
|
email: obj.email, |
|
|
|
email: obj.email, |
|
|
|
public_email: true, |
|
|
|
|
|
|
|
is_show: syzoj.config.default.user.show, |
|
|
|
is_show: syzoj.config.default.user.show, |
|
|
|
rating: syzoj.config.default.user.rating, |
|
|
|
rating: syzoj.config.default.user.rating, |
|
|
|
register_time: parseInt((new Date()).getTime() / 1000), |
|
|
|
register_time: parseInt((new Date()).getTime() / 1000) |
|
|
|
prefer_formatted_code: true |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
await user.save(); |
|
|
|
await user.save(); |
|
|
|
|
|
|
|
|
|
|
|