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 { SignupService } from '@/core/SignupService.js';
|
||||||
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||||
import { EmailService } from '@/core/EmailService.js';
|
import { EmailService } from '@/core/EmailService.js';
|
||||||
|
import { ILocalUser } from '@/models/entities/User.js';
|
||||||
import { SigninService } from './SigninService.js';
|
import { SigninService } from './SigninService.js';
|
||||||
import type Koa from 'koa';
|
import type Koa from 'koa';
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ export class SignupApiService {
|
||||||
|
|
||||||
const link = `${this.config.url}/signup-complete/${code}`;
|
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:<br><a href="${link}">${link}</a>`,
|
||||||
`To complete signup, please click this link: ${link}`);
|
`To complete signup, please click this link: ${link}`);
|
||||||
|
|
||||||
|
@ -167,7 +168,7 @@ export class SignupApiService {
|
||||||
emailVerifyCode: null,
|
emailVerifyCode: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.signinService.signin(ctx, account);
|
this.signinService.signin(ctx, account as ILocalUser);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ctx.throw(400, e);
|
ctx.throw(400, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue