mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-01 12:13:18 +00:00
fix(client) authCheck: can not connect via web sockets when auth disabled (#160)
This commit is contained in:
parent
31737ec68f
commit
f248e29405
5 changed files with 0 additions and 15 deletions
|
|
@ -77,9 +77,6 @@ function OperationProto(operation, data) {
|
|||
const accept = wraptile(ok);
|
||||
const alertDialog = wraptile(Dialog.alert);
|
||||
|
||||
if (!config('auth'))
|
||||
return ok(spawn);
|
||||
|
||||
spawn.on('accept', accept(spawn));
|
||||
spawn.on('reject', alertDialog (TITLE, 'Wrong credentials!'));
|
||||
spawn.emit('auth', config('username'), config('password'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue