Skip to content

Conversation

@LoicBelmond
Copy link

No description provided.

LoicBelmond and others added 15 commits September 11, 2025 14:43
* Add login page and JS validation

* Add basic database config mock

* Update database config

* DB: change README title to database-focused wording

* Address review: add security warning; rename user->username; connectDB returns boolean
…Belmond/project-website-template into feature/database-connection

“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”Change request:
“Avoid plain-text credentials in examples. Please add a security warning comment and rename user→username for clarity.”

// WARNING: Demo only. Do NOT store real credentials in client-side code.
const db = {
  host: "localhost",
  username: "admin",
  password: "password123",
};

Question:
“Can connectDB() return a boolean or value so callers can assert success instead of relying on console output?”
no

q
q!

q!
i
e
:wq

exit

q!

:q!

.git
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