|
@@ -4,7 +4,6 @@ import { ErrorV3 } from '@growi/core';
|
|
|
import { format, subSeconds } from 'date-fns';
|
|
import { format, subSeconds } from 'date-fns';
|
|
|
import { body, validationResult } from 'express-validator';
|
|
import { body, validationResult } from 'express-validator';
|
|
|
|
|
|
|
|
-import { successUserActivationEmailSended } from '~/interfaces/user-activation';
|
|
|
|
|
import UserRegistrationOrder from '~/server/models/user-registration-order';
|
|
import UserRegistrationOrder from '~/server/models/user-registration-order';
|
|
|
|
|
|
|
|
const PASSOWRD_MINIMUM_NUMBER = 8;
|
|
const PASSOWRD_MINIMUM_NUMBER = 8;
|
|
@@ -214,12 +213,6 @@ export const registerAction = (crowi) => {
|
|
|
|
|
|
|
|
makeRegistrationEmailToken(email, crowi);
|
|
makeRegistrationEmailToken(email, crowi);
|
|
|
|
|
|
|
|
- const resData: successUserActivationEmailSended = {
|
|
|
|
|
- redirectTo: '/login#login',
|
|
|
|
|
- message: 'message.successfully_send_email_auth',
|
|
|
|
|
- email,
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- res.apiv3(resData);
|
|
|
|
|
|
|
+ return res.apiv3({ redirectTo: '/login#register' });
|
|
|
};
|
|
};
|
|
|
};
|
|
};
|