Skip to content
Snippets Groups Projects
Commit 2c45c5b1 authored by syuilo's avatar syuilo
Browse files

fix

parent 6eace889
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment