// Code meme

The two-field form

Edit profileNameBobBioJust a regular user :)SaveDevTools › Network › Edit and resendPATCH /api/users/me{"name": "Bob","bio": "Just a regular user :)","role": "ADMIN","emailVerified": true}200 OK · Profile updatedWelcome back, Administrator Bob.fields on form: 2fields on entity: 12The form had two fields.The entity had twelve.ayushwing.com

The form had two fields. The entity had twelve. Like every meme on this site, it is drawn entirely in code: an SVG built from TypeScript, no stock art.

The serious version: Mass assignment in Spring: how one JSON field makes someone an admin

← All memes