Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chronocaster-frontend/src/auth/AuthContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const AuthProvider = ({ children }) => {
}, [refresh]);

const login = useCallback(async (email, password, remember = false) => {
console.log('login attempt', { email, password, remember });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Critical — Logging plaintext passwords leaks user credentials to the console and any log-capture tooling.

console.log('login attempt', { email, password, remember }) writes the user's plaintext password (and email) to the browser console on every login attempt. This persists in devtools, is visible to anyone with access to the machine or session, and is commonly captured by browser-error/log aggregation tooling — exposing credentials in cleartext. Remove the statement, or at minimum drop password and email from the logged payload.

const { data } = await apiClient.post('/auth/login', { email, password, remember });
setUser(data?.user ?? null);
return data?.user;
Expand Down