优化登录controller对登录方式的处理
This commit is contained in:
@@ -19,7 +19,7 @@ export class AuthController {
|
|||||||
case 'email':
|
case 'email':
|
||||||
return this.authService.loginWithEmail(loginDto);
|
return this.authService.loginWithEmail(loginDto);
|
||||||
default:
|
default:
|
||||||
throw new BadRequestException('Invalid login type');
|
throw new BadRequestException('服务器错误');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user