Add console log for login attempts - #10
Conversation
|
📋 PR Summary This PR adds a Changes
|
| }, [refresh]); | ||
|
|
||
| const login = useCallback(async (email, password, remember = false) => { | ||
| console.log('login attempt', { email, password, remember }); |
There was a problem hiding this comment.
🔴 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.
No description provided.