Skip to content

Commit 9c60986

Browse files
author
Maurits Lourens
authored
Remove the password from the apps request (ToolJet#2461)
1 parent fbb33fc commit 9c60986

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/controllers/apps.controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ export class AppsController {
200200
} else {
201201
apps = await this.appsService.all(req.user, page, searchKey);
202202
}
203+
//remove password from user info
204+
apps.forEach((app) => (app.user.password = undefined));
203205

204206
const totalCount = await this.appsService.count(req.user, searchKey);
205207

0 commit comments

Comments
 (0)