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

test password feature #5

Closed
johnfelipe opened this issue Sep 29, 2017 · 3 comments
Closed

test password feature #5

johnfelipe opened this issue Sep 29, 2017 · 3 comments

Comments

@johnfelipe
Copy link

How can test password feature?

pantallazo-0351

An when draw not show password window

@bytesnz
Copy link
Collaborator

bytesnz commented Sep 29, 2017

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)

@johnfelipe
Copy link
Author

/*
  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

@bytesnz
Copy link
Collaborator

bytesnz commented Oct 14, 2017

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants