This commit is contained in:
KernelDeimos
2024-04-14 22:29:54 -04:00
parent dca7304be9
commit b944217410
+1 -1
View File
@@ -81,7 +81,7 @@ const CHANGE_EMAIL_CONFIRM = eggspress('/change_email/confirm', {
allowedMethods: ['GET'],
}, async (req, res, next) => {
const user = req.user;
const token = req.body.token;
const token = req.query.token;
if ( ! token ) {
throw APIError.create('field_missing', null, { key: 'token' });