Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft login 187584915 #23

Closed
wants to merge 3 commits into from
Closed

Ft login 187584915 #23

wants to merge 3 commits into from

Conversation

ProgrammerDATCH
Copy link
Member

No description provided.

Copy link

gitguardian bot commented May 22, 2024

⚠️ GitGuardian has uncovered 10 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
10549210 Triggered Generic Password 60ca38d src/databases/seeders/20240520202759-users.ts View secret
10549210 Triggered Generic Password 60ca38d src/modules/user/test/user.spec.ts View secret
10549210 Triggered Generic Password f7afa6d src/databases/seeders/20240520202759-users.ts View secret
10549210 Triggered Generic Password f7afa6d src/modules/user/test/user.spec.ts View secret
10549210 Triggered Generic Password b13cb1a src/databases/seeders/20240520202759-users.ts View secret
10549210 Triggered Generic Password b13cb1a src/modules/auth/test/auth.spec.ts View secret
11093307 Triggered Generic Password 60ca38d src/modules/user/test/user.spec.ts View secret
11093307 Triggered Generic Password 60ca38d src/modules/user/test/user.spec.ts View secret
11093307 Triggered Generic Password b13cb1a src/modules/auth/test/auth.spec.ts View secret
11093307 Triggered Generic Password b13cb1a src/modules/auth/test/auth.spec.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

production: {
logging: false,
dialect: "postgres",
url: process.env.DATABASE_URL_PRO,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
password: process.env.DATABASE_PASSWORD_DEV
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

logging: false,
dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
dotenv_1.default.config();
module.exports = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'module' is not defined.

return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'require' is not defined.

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'exports' is not defined.

@@ -0,0 +1,45 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a strict mode function is executed using function invocation, its 'this' value will be undefined.

@@ -0,0 +1,45 @@
"use strict";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the function form of "use strict".

production: {
logging: false,
dialect: "postgres",
url: process.env.DATABASE_URL_PRO,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
password: process.env.DATABASE_PASSWORD_DEV
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

logging: false,
dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
dotenv_1.default.config();
module.exports = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'module' is not defined.

return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'require' is not defined.

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'exports' is not defined.

@@ -0,0 +1,45 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a strict mode function is executed using function invocation, its 'this' value will be undefined.

@@ -0,0 +1,45 @@
"use strict";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the function form of "use strict".

production: {
logging: false,
dialect: "postgres",
url: process.env.DATABASE_URL_PRO,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
password: process.env.DATABASE_PASSWORD_DEV
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

logging: false,
dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
dotenv_1.default.config();
module.exports = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'module' is not defined.

return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'require' is not defined.

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'exports' is not defined.

@@ -0,0 +1,45 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a strict mode function is executed using function invocation, its 'this' value will be undefined.

@@ -0,0 +1,45 @@
"use strict";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the function form of "use strict".

production: {
logging: false,
dialect: "postgres",
url: process.env.DATABASE_URL_PRO,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
password: process.env.DATABASE_PASSWORD_DEV
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
username: process.env.DATABASE_USERNAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
database: process.env.DATABASE_NAME_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

logging: false,
dialect: "postgres",
port: process.env.DATABASE_PORT_DEV,
host: process.env.DATABASE_HOST_DEV,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'process' is not defined.

Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
dotenv_1.default.config();
module.exports = {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'module' is not defined.

return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
'require' is not defined.

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'exports' is not defined.

@@ -0,0 +1,45 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a strict mode function is executed using function invocation, its 'this' value will be undefined.

@@ -0,0 +1,45 @@
"use strict";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the function form of "use strict".

type: sequelize_1.DataTypes.DATE,
defaultValue: sequelize_1.DataTypes.DATE
}
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrecoverable syntax error. (91% scanned).

defaultValue: false
},
status: {
type: new sequelize_1.DataTypes.BOOLEAN,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing '()' invoking a constructor.

defaultValue: false
},
is2FAEnabled: {
type: new sequelize_1.DataTypes.BOOLEAN,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing '()' invoking a constructor.

allowNull: false
},
isVerified: {
type: new sequelize_1.DataTypes.BOOLEAN,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing '()' invoking a constructor.

allowNull: false
},
phone: {
type: new sequelize_1.DataTypes.BIGINT,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing '()' invoking a constructor.

const sequelize_1 = require("sequelize");
exports.default = {
up: async (queryInterface) => {
await queryInterface.createTable("tokens", {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').
Bad invocation.
Expected ')' to match '{' from line 5 and instead saw 'queryInterface'.
Expected '}' to match '{' from line 4 and instead saw 'createTable'.
Expected an identifier and instead saw '.'.

Object.defineProperty(exports, "__esModule", { value: true });
const sequelize_1 = require("sequelize");
exports.default = {
up: async (queryInterface) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected '(' and instead saw '{'.

@@ -0,0 +1,46 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const sequelize_1 = require("sequelize");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@@ -0,0 +1,46 @@
"use strict";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the function form of "use strict".

});
db.sequelize = sequelize;
db.Sequelize = sequelize_1.Sequelize;
exports.default = db;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'exports' is not defined.

@ProgrammerDATCH
Copy link
Member Author

No longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant