Git Product home page Git Product logo

Comments (3)

bytesnz avatar bytesnz commented on August 29, 2024

With those settings (the editPassword Object will override the string as it is second), only the drawing /d/protected will be protected with a password - you will be able to view the drawing, but you won't be able to edit it without entering the password (you will be prompted when you changed to a tool that will edit the drawing)

from draw.

johnfelipe avatar johnfelipe commented on August 29, 2024
/*
  This file must be valid JSON. But comments are allowed

  Please edit settings.json, not settings.json.template
*/

{
  //IP and port which etherpad should bind at
  "ip" : "0.0.0.0",
  "port" : 9002,

  // Uncomment to remove rooms after a certain amount of time of inactivity.
  // Value can either be just a number (for the number of seconds), or a
  // a number and a unit (min, hr, or day).
  // "removeUnused": "1day",

  // Uncomment the following line to require the given password to be entered
  // before all drawings can be edited
  "editPassword": "jaime123",
  // The edit password can also be an object containing room names and
  // passwords as key/value pairs
  "editPassword": {
   "protected": "jaime"
  },
  // Uncomment to add a timeout on authentication tokens. Value can either be
  // just a number (for the number of seconds), or a number and a unit
  // (min, hr, or day)
  // "authenticationTimeout": "1day",

  //The Type of the database. You can choose between dirty, postgres, sqlite and mysql
  //You shouldn't use "dirty" for for anything else than testing or development
  "dbType" : "dirty",
  //the database specific settings
  "dbSettings" : {
	 "filename" : "var/dirty.db"
  },

  /* An Example of MySQL Configuration
  "dbType" : "mysql",
  "dbSettings" : {
	"user"    : "root", 
	"host"    : "localhost", 
	"password": "", 
	"database": "etherdraw"
  },
  */

  /* The default selected tool - 'pencil', 'brush', 'select' */
  "tool": "brush"
				 
  /* Example SSL Configuration
	"ssl" : {
	  "key": "/path/to/key.key",
	  "cert": "/path/to/cert.crt"
	}
  */

}

Is not working, i have jaime room and jaime123 password and is not working

from draw.

bytesnz avatar bytesnz commented on August 29, 2024

So if you want to protect a room named jamie your editPassword should be:

"editPassword": {
  "jamie": " jamie123"
}

from draw.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.