fixed ws login

This commit is contained in:
cubedro 2015-02-27 00:03:57 +02:00
parent 73b4a930d9
commit 06ed561947

2
app.js
View File

@ -44,7 +44,7 @@ api.on('connection', function(spark) {
console.log('got hello data from ', spark.id);
console.log(data);
if(typeof data.secret === 'undefined' || data.secret !== process.env.WS_SECRET)
if(typeof data.secret === 'undefined' || data.secret !== WS_SECRET)
{
spark.end(undefined, { reconnect: false });