Correspondence option not available when not signed in (anonymous mode)
URL in which this issue happened: Lishogi.org
Steps to reproduce:
- Sign out if you're signed in
- Click on "Create a Game"/"Play with a friend"/"Play with the computer".
- Click on Time control drop down menu
I expected the drop down list to show two options: Real time and correspondence
Instead, it showed me only one option: Real time
OS: Android 14 Browser & version: Chrome 132.0.6834.163
https://github.com/user-attachments/assets/bef9adf7-0502-4ccf-8a4d-c16acc62a4d2
That's the intended behaviour, if a player is signed out the game 'ownership' is being verified via cookie, but that's not very reliable for longer periods of time, more discussed here: https://github.com/WandererXII/lishogi/issues/872
I see. What can an anonymous player possible do to play correspondence? P.S. Can you check the no time limit issue, I have a suggestion
Well, the obvious thing to do is create an account. Unlimited is handled in the same way as correspondence so anons also won't be able to play that.
So while writing the code, did you intentionally want anons not be able to access the correspondence mode basically?
It's intentional, because without an account it's not possible to reliable make sure if this anon player is the one who should play the game. Currently I think it's still possible for anon players to play correspondence -if registered user sends them a link to correspondence game, but this will be fixed in the next update.
Okay, I see. So basically the idea is anons cannot be trusted with correspondence? Maybe because they may take a lot of time? But that issue can happen in real time too, can't it?
Sorry missed this. The issue is how to track the user, browser might flush cookies, etc. and since the anon player doesn't have an account there is no way for us to tell the anon user from other anon users. With the new update correspondence should now be disabled for anon users.