Devlog | M16

Accounts and login

The launcher's login screen, with email, password and a link to create an account

OVERTIME has accounts now. You make one in the launcher, log in once, and it remembers you.

The plan had login screens inside the game. Then the launcher happened, and it's the first thing a player sees anyway, so login moved there. One login screen, outside Unity, and it can happen while an update is still on its way.

Most of the work is in the things you hope nobody ever notices. Passwords are stored as salted hashes, never as text, and they never end up in the logs either. A wrong password and an unknown address get exactly the same answer, and take about as long, so nobody can use the login box to find out who has an account. Five wrong tries on an account and it locks for 15 minutes.

Those failed tries are counted in the database and not in the server's memory. That's a choice with the future in mind: when there's more than one backend behind a load balancer, they all need to count the same tries.

Staying logged in works with two tokens. A short one proves who you are for 15 minutes. A long one gets you a new short one, and it changes every time it's used. That gives a nice trap: if a token that's already been used comes back, someone has copied it, so that whole login gets thrown out.

On your computer, the long token sits in a file encrypted by Windows for your own Windows account. Copying the file to another machine gives you nothing.

The stack has one public door now. Caddy passes login to the backend and serves builds, and the internal API for game servers can't be reached from outside at all.

Logging in doesn't yet decide which character you play. That's the next step: character select, and a join token the game server can trust.