Fix duplicate login bug

This commit is contained in:
calzoneman 2013-03-05 14:12:55 -06:00
parent fc27736017
commit 1a88c9e27e
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ User.prototype.initCallbacks = function() {
}.bind(this));
this.socket.on('login', function(data) {
this.login(data.name, data.sha256);
if(this.name == "")
this.login(data.name, data.sha256);
}.bind(this));
this.socket.on('register', function(data) {