Skip to content
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

Cookies Session login #259

Open
Drakz-z opened this issue Aug 19, 2024 · 2 comments
Open

Cookies Session login #259

Drakz-z opened this issue Aug 19, 2024 · 2 comments
Labels
Enhancement New feature or change request

Comments

@Drakz-z
Copy link

Drakz-z commented Aug 19, 2024

Hey, I thought since u already use session cookies/tokens to login to it, could u maybe make it so u could use cookies directly instead of adding user+pass to login.

Thank you, have a nice day

@Drakz-z Drakz-z added the Enhancement New feature or change request label Aug 19, 2024
@3urobeat
Copy link
Owner

3urobeat commented Sep 1, 2024

Hey, sorry for the long wait.

Yes, this is a good idea. I guess this could be implemented by adding more special keywords.
At the moment there only exists username:qrcode to login with a QR-Code, but I could also add username:cookie to let the bot check if a cookie exists for that user in the database and maybe *:cookie to login all accounts with a stored session.

@3urobeat
Copy link
Owner

3urobeat commented Jan 28, 2025

This has now been implemented.
To login a specific cached account, provide the username, : and no password like so: myusername:
To login all accounts cached in tokens.db, provide the following once in accounts.txt: *:cookie

The only downside of this feature is that the order of accounts is not guaranteed, which may cause the main account to become another one on a restart. You can however provide a specific account first and then *:cookie later on, which should circumvent this.

I'll leave this issue open until Version 2.16.0 is out on the master branch which implements this new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or change request
Development

No branches or pull requests

2 participants