zorchenhimer / MovieNight

Single instance video streaming server with integrated chat.

Home Page:https://discord.gg/F2VSgjJ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Suggestion] Flag for Admin Password

hadichaudhri opened this issue · comments

Hey, I know that this is present in the settings json file, but is it possible to add a switch, lets say -p, such that running ./MovieNight -p MyAmazingPassword would start the client with the appropriate admin password?

Update: As of now, MovieNight completely disregards any manual input of the Administrator Password in the settings.json file as well. This poses a problem for certain use cases, such as when one is unable to capture console output.

commented

The password is generated and written to the config file on startup. This was done so I didn't have to watch the console output to get it. There isn't a way to set the password yet, but I'm not against adding it as a command line option.

commented

I had a look and this was easy enough to add (commit ce2150f). The command line switch is -a instead of -p, as I might add another option to specify a moderator password later. A password set this way will not be written to the configuration file.