Newer Portainer installs ask for a token when you create the first admin. It is not on the screen, but in the log.
docker logs portainer 2>&1 | grep setup_token
docker run -d --name portainer -p 9443:9443 -v portainer_data:/data -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:lts --setup-token mysecret
From version 2.43 (and 2.39.4) a brand-new instance needs a one-time token before it accepts the first administrator. The token is printed in the server log as setup_token=. You also have to create the user within five minutes.
For scripted installs pass --setup-token value yourself, or set the admin password with --admin-password-file, which needs no token. --no-setup-token switches the check off, which is only reasonable on a trusted private network.
Further reading: Portainer docs: setup token FAQ