后端验证服务成功返回true
This commit is contained in:
@@ -31,6 +31,7 @@ export class VerificationService {
|
|||||||
// await this.notificationService.sendSMS(phone, type, code);
|
// await this.notificationService.sendSMS(phone, type, code);
|
||||||
// 存储验证码
|
// 存储验证码
|
||||||
this.saveCode(key, code);
|
this.saveCode(key, code);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendEmailCode(email: string, type: 'login') {
|
async sendEmailCode(email: string, type: 'login') {
|
||||||
@@ -46,6 +47,7 @@ export class VerificationService {
|
|||||||
|
|
||||||
// 存储验证码
|
// 存储验证码
|
||||||
this.saveCode(key, code);
|
this.saveCode(key, code);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private saveCode(key: string, code: string) {
|
private saveCode(key: string, code: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user