Skip to content

Commit a46c72b

Browse files
committed
feat: 登录页面
1 parent 3c91935 commit a46c72b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/api/login/login.controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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']);

src/api/tenant/tenant.controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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';
1214
import { TenantDto } from './dto/tenant.dto';
1315
import { QueryTenantDto } from './dto/tenant.query';
1416
import { TenantService } from './tenant.service';
1517
import { TenantPageVo, TenantVo } from './vo/tenant.vo';
16-
18+
@UseGuards(AuthGuard)
1719
@Controller('tenant')
1820
export class TenantController {
1921
constructor(private readonly tenantService: TenantService) {}

0 commit comments

Comments
 (0)