← All tasks
🧮
Intermediate

Write Safe Logging That Excludes Sensitive Data

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expression that logs a login attempt using only the username, explicitly excluding the password field.

Scenario

A previous log statement accidentally included the raw password field in plaintext log files.

Ready to try it?

Create a free account and subscribe to take "Write Safe Logging That Excludes Sensitive Data". Earn 90 XP and track your internship progress.

Already have an account? Sign in