Open quenenni opened 10 years ago
I found the problem for point 2 ( when I delete a group, my etherpad crashes).
When I imported the tables structure in my Db (via phpMyAdmin), I remembered having troubles because of the (sort of) single quotes surrounding the names.
In your pdf, we have:
‘GroupID‘
And we shoud have:
`GroupID`
Yours are different from mines and are wrong.
Now it works well..
Hello,
I also manged to solve issue #2 after changing the ticks.
BUT, I still have issue #1, the one where encryptPassword is not defined. Can you tell me, what is missing?
Thank you!
Yours, WroDo
Open the file ap_user_pad/hooks.js
Inside, find the function encryptPassword and remove the 'settings.' at the beginning.
encryptPassword = function (password, salt, cb) {
var encrypted = crypto.createHmac('sha256', salt).update(password).digest('hex');
cb(encrypted);
};
If it's still doen't work, can you verify you have the exact same error.
It's still happening when the plugin is installed through npm. Can this be updated?
Sorry, I meant the encryptPassword thing. The sql definition is also very awkward. Please add an .sql import file!
Wonderful plugin you're doing. Thanks.
I had few problems while testing it:
I resolved that problem by defining the function encryptPassword without the 'settings' before the name.
encryptPassword = function (password, salt, cb) in hooks.js
I can see that the group is removed from the table "Groups" in the DB.