mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-23 13:07:47 +01:00
fix
This commit is contained in:
parent
6eace8894a
commit
2c45c5b13e
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue