This commit is contained in:
syuilo 2022-09-24 09:03:04 +09:00
parent 6eace8894a
commit 2c45c5b13e
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import { IdService } from '@/core/IdService.js';
import { SignupService } from '@/core/SignupService.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';
import { EmailService } from '@/core/EmailService.js';
import { ILocalUser } from '@/models/entities/User.js';
import { SigninService } from './SigninService.js';
import type Koa from 'koa';
@ -117,7 +118,7 @@ export class SignupApiService {
const link = `${this.config.url}/signup-complete/${code}`;
sendEmail(emailAddress, 'Signup',
this.emailService.sendEmail(emailAddress, 'Signup',
`To complete signup, please click this link:<br><a href="${link}">${link}</a>`,
`To complete signup, please click this link: ${link}`);
@ -167,7 +168,7 @@ export class SignupApiService {
emailVerifyCode: null,
});
this.signinService.signin(ctx, account);
this.signinService.signin(ctx, account as ILocalUser);
} catch (e) {
ctx.throw(400, e);
}