Myster-Tee / TinfoilWebServer

Install your packages from your own server
GNU General Public License v3.0
123 stars 26 forks source link

Multi User #9

Closed thomin07 closed 1 year ago

thomin07 commented 1 year ago

Hello, I installed TinfoilServer on Windows and I would like to know how to create several users for the connection please?

Myster-Tee commented 1 year ago

Simply edit "Users" section of the TinfoilWebServer.config.json like the example below for 3 users:

"Users": [
  {
    "Name":  "SomeUserName1"
    "Pwd": "SomePwd1", 
    "MessageOfTheDay": "Hello user 1!"
  },
  {
    "Name":  "SomeUserName2"
    "Pwd": "SomePwd2"
  },
  {
    "Name":  "SomeUserName3"
    "Pwd": "SomePwd3", 
    "MessageOfTheDay": "Hello user 3!"
  }
]

"MessageOfTheDay" is not mandatory as you can see for "SomeUserName2".