macos – Typed password into user field on admin prompt

I was prompted by macOS for admin confirmation. I typed my password into the username field and pressed enter.

Is this a security risk? Do I have to be worried about anything? Should I immediately change my password?

It’s a little bit annoying that macOS UX is inconsistent here; I’m the only account on this device, and I am the administrator account. So why do some prompts ask for both username and password to both be typed and most prompts only ask for password. Is there a way to make all prompts password-only so I can avoid this blunder in the future? (And save some typing time)