mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(cloudcmd) arrow function
This commit is contained in:
parent
7474ed9b4f
commit
02bac76d1a
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ function authCheck(socket, success) {
|
|||
if (!config('auth'))
|
||||
return success();
|
||||
|
||||
socket.on('auth', function(name, pass) {
|
||||
socket.on('auth', (name, pass) => {
|
||||
const isName = name === config('username');
|
||||
const isPass = pass === config('password');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue