Question · Vibe coding with Claude Code course · Module 7: LinkedIn clone

Quiz: The message sender

The logged-in redbeard sent a POST with the field "from": "anne". Who will the server save as the sender?

Answer options

  • Anne, because the server trusts the from field of the request
  • Nobody, the server will return a 500 error
  • Both, two messages will be created
  • Redbeard, because the sender comes from getCurrentUser() and the from field of the request is ignored

You can check the correct answer by solving this task in the CodeWorlds game.