Hagbuck / cookie-autosaver

Server-client application for cookie clicker to auto save your progress on your hard drive
0 stars 0 forks source link

Account management #5

Open Hagbuck opened 5 years ago

Hagbuck commented 5 years ago

Propose to our users to create an account on a server and save his saves on it.

The goal is to allow a group of people to use the same server.

Obviously, the addon plugin should be upgrade to select the right server

Hagbuck commented 5 years ago

The server should have a HTML page to create an account.

We should pass to the client request the credential to send to the server.

After the server will save the user save in a user folder

Hagbuck commented 5 years ago

The server should have a multiaccount properties

Hagbuck commented 5 years ago

The login / logout / account create have to be a function into the object addon frontside. But could be also purpose by a GUI into the option pannel

Hagbuck commented 5 years ago

Actually the serveur send on /signin a html page with a form. Once the user is register, he can set up his plugin with those kind of command :

Autosaver.username = 'my_username';
Autosaver.password = 'my_password';

if the both parameters are filled, the serveur will try to save in the custom user folder. But if the credentials doesn't match with any users of the server, the save fail.

Obviously, the server can also be configure to accept save without logging.