mirror of https://github.com/calzoneman/sync.git
Fix duplicate login bug
This commit is contained in:
parent
fc27736017
commit
1a88c9e27e
3
user.js
3
user.js
|
@ -47,7 +47,8 @@ User.prototype.initCallbacks = function() {
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this.socket.on('login', function(data) {
|
this.socket.on('login', function(data) {
|
||||||
this.login(data.name, data.sha256);
|
if(this.name == "")
|
||||||
|
this.login(data.name, data.sha256);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this.socket.on('register', function(data) {
|
this.socket.on('register', function(data) {
|
||||||
|
|
Loading…
Reference in New Issue