mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
Now accept all users whether authorize or not without log errors to allow anonymous usage
This commit is contained in:
parent
48de9a02a3
commit
411ce1343e
1 changed files with 2 additions and 3 deletions
|
@ -35,12 +35,11 @@ var realtime = {
|
|||
};
|
||||
|
||||
function onAuthorizeSuccess(data, accept) {
|
||||
accept(null, true);
|
||||
accept();
|
||||
}
|
||||
|
||||
function onAuthorizeFail(data, message, error, accept) {
|
||||
if (error) throw new Error(message);
|
||||
accept(null, true);
|
||||
accept(); //accept whether authorize or not to allow anonymous usage
|
||||
}
|
||||
|
||||
function secure(socket, next) {
|
||||
|
|
Loading…
Reference in a new issue