New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Change how auto-login works #1063
Comments
|
Whereas the other issues have been closed, actually implementing this is more complex than expected. Notably because the webclient must somehow track so that it does not log out of the website if there are remaining (webclient-)Sessions connected; which is not immediately obvious how to determine. |
|
@Griatch Can the webclient send an OOB command that queries all active sessions? |
|
Something like reference counting would have to be implemented here. A way to query either by an API call, OOB command, whatever, and increment/decrement a "session count" and on log out if that count - 1 == 0, log out fully and destroy the website session. |
|
It could, but it's not really up to the webclient itself to handle this I don't think, but the webclient's backend. I did try querying the session count connected to a given player as my first attempt but ran into edge cases with the implementation. Will likely revisit to see if I can figure out a stable way to do it. |
|
This was moved to the devel branch leading up to Evennia 0.7. |
|
Implemented in devel. |
Brief summary of issue / Description of requested feature:
Currently the auto-login feature is asymmetric:
Case 4. should behave as 2.
Steps to reproduce the issue / Reasons for adding feature:
Error output / Expected result of feature
The original reason for the auto-login is to avoid the case of having to log in twice (once for website and once for webclient). While one could argue that there is a potential advantage to be able to just auto-login to the webclient if still logged into the website, now logging out is a two-step process instead, where one has to go to the website in order to actually be able to login anew to the webclient. In short, logging out of the webclient should also log one out of the website.
Extra information, such as Evennia revision/repo/branch, operating system and ideas for how to solve / implement:
This requires going through and refactor the auto-login mechanism. There are several issues, such as #1061 and #1037.
The text was updated successfully, but these errors were encountered: