mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Fix duplicate login bug
This commit is contained in:
parent
fc27736017
commit
1a88c9e27e
1 changed files with 2 additions and 1 deletions
3
user.js
3
user.js
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue