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

Allows for signing in with a username and a password #20

Merged
merged 5 commits into from
Jun 16, 2022
Merged

Conversation

Lukasdotcom
Copy link
Owner

No description provided.

// Goes through every user that has the email or username that was given and has password authentication enabled
const connection = createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
// Goes through every user that has the email or username that was given
const connection = createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
if (account.provider === "google") {
const connection = createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
const [id, username] = await new Promise((res) => {
const connection = createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
const mysql = require('mysql')
const connection = mysql.createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
const password = req.body.password
const connection = mysql.createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
const mysql = require('mysql')
const connection = mysql.createConnection({
host : process.env.MYSQL_HOST,
user : "root",

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "root" is used as [user name](1).
@Lukasdotcom Lukasdotcom merged commit f7abf00 into main Jun 16, 2022
@Lukasdotcom Lukasdotcom deleted the usernames branch June 16, 2022 19:52
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