Websites, apps & code / Coding & debugging

Check a login feature for weak spots

You built a member login and want an AI to look for obvious security problems before launch.

1Fill in your details

Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).

2Pick a variationFramework

3Copy the prompt

I wrote a login feature for a website and want to check it for obvious security problems before launch. Please review it from a defensive point of view.

Login code:
app.post("/login",(req,res)=>{ db.query("SELECT * FROM users WHERE email='"+req.body.email+"' AND pass='"+req.body.pass+"'") })

Data I store: Member names, phones and points, with passwords stored as plain text
Framework: Give Express-friendly fixes including password hashing and login rate limiting.

Please:
1. List the problems you find, ranked by severity, each in plain words saying how a bad actor could abuse it, without detailed attack steps.
2. Give a fixed way of writing each one.
3. Cover how to store passwords, what to do after too many failed logins and whether to force HTTPS.
4. Remind me that Malaysia's Personal Data Protection Act (PDPA) has basic requirements for member data, and ask me to check the exact provisions from the official source.
5. Finish with a pre-launch checklist.
Do not ask me to paste real passwords or database logins; use fake ones.

[Make it sound human]
- Explain in plain words; no pleasantry openers or empty summaries.
- Only necessary, short, practical code comments; the simplest working approach, no over-engineering.
- Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock".
[Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.

Paste it into ChatGPT, Gemini, Claude or Meta AI.

Test result

This one was not tested on its own. Uses in this category share the same structure, and we spot-tested several of them, for example: Explain what code does, Fix an error message

AI tools that suit this

  • Claude Suggested tool Free plan

    Strong at long documents, editing and code

  • ChatGPT Suggested tool Free plan

    The most widely used AI chat, for writing, questions and images

  • Claude Code Suggested tool Free plan

    AI that writes code directly on your computer

Recommendations only, not sponsored. Check each site for what the free plan includes.

This site is made by FullMark Tech

Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.

Ask on WhatsApp See FullMark Tech services