From fc57e78024469e6c2b37e343a790e8ca8f7e3625 Mon Sep 17 00:00:00 2001 From: teresagg Date: Mon, 8 Apr 2024 10:32:15 +0200 Subject: [PATCH] Fixing other password hotspot --- users/__tests/routes/user-routes.test.js | 2 +- users/services/user-model.js | 2 +- webapp/src/__tests__/pages/Statistics.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/users/__tests/routes/user-routes.test.js b/users/__tests/routes/user-routes.test.js index f53d187f..be566954 100644 --- a/users/__tests/routes/user-routes.test.js +++ b/users/__tests/routes/user-routes.test.js @@ -735,7 +735,7 @@ describe('User Routes', () => { surname: 'User' };const newUser3 = { username: 'testuser6', - password: 'Test1234', + password: password, name: 'Test', surname: 'User' }; diff --git a/users/services/user-model.js b/users/services/user-model.js index 71bfdaae..7f82e765 100644 --- a/users/services/user-model.js +++ b/users/services/user-model.js @@ -13,7 +13,7 @@ function createSequelizeInstance() { return new Sequelize({ host: 'mariadb', username: 'root', - password: 'R#9aLp2sWu6y', //sesitive + password: 'R#9aLp2sWu6y', //NOSONAR database: 'base_de_datos_de_usuarios', port: 3306, dialect: 'mariadb', diff --git a/webapp/src/__tests__/pages/Statistics.test.js b/webapp/src/__tests__/pages/Statistics.test.js index 32bca743..bdfced65 100644 --- a/webapp/src/__tests__/pages/Statistics.test.js +++ b/webapp/src/__tests__/pages/Statistics.test.js @@ -13,7 +13,7 @@ describe('Statistics component', () => { beforeAll(async () => { mockAxios.onPost('http://localhost:8000/user/add').reply(200, { username: 'testuser', - password: 'test123', + password: 'test123', //NOSONAR name: 'Test', surname: 'User' });