Friends. I have an extended chat on Photon. You can say almost like a social network.
I made a registration room. After registration, the player can enter the "Login to your account" room. There he enters his data.
He enters a username and password. And after clicking "Login to your account" these two values are sent to the server for verification, that is, the username and password are separated by the "_" character
When the server receives the code, it checks if this username exists. If not, it sends the text "Username not found". And if found, it looks at the password of this username.
I did this using a "For" loop.
But the thing is that if there are more than 2 or 3 registered users.
Then I can’t log into my account. Sometimes I can and sometimes I can’t.
I enter my data and the server says that the user is not in the list of registered users, although he is. I can’t understand the reason for 2 days, help someone who can. I’ll throw off the project itself if necessary.
Here's what it looks like