File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,8 @@ export class LoginController {
3131 fontSize : 50 , //文字大小
3232 width : 100 , //宽度
3333 height : 34 , //高度
34- background : '#cc9966 ' , //背景颜色
34+ background : '#fff ' , //背景颜色
3535 } ) ;
36- console . log ( captcha , '??' ) ;
3736 session [ 'code' ] = captcha [ 'text' ] ; //存储验证码记录到session
3837 res . set ( 'Content-Type' , 'image/svg+xml' ) ;
3938 res . send ( captcha [ 'data' ] ) ;
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ import {
88 Param ,
99 ParseIntPipe ,
1010 Query ,
11+ UseGuards ,
1112} from '@nestjs/common' ;
13+ import { AuthGuard } from '@src/guard/auth.guard' ;
1214import { TenantDto } from './dto/tenant.dto' ;
1315import { QueryTenantDto } from './dto/tenant.query' ;
1416import { TenantService } from './tenant.service' ;
1517import { TenantPageVo , TenantVo } from './vo/tenant.vo' ;
16-
18+ @ UseGuards ( AuthGuard )
1719@Controller ( 'tenant' )
1820export class TenantController {
1921 constructor ( private readonly tenantService : TenantService ) { }
You can’t perform that action at this time.
0 commit comments