mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Adds username validation for socketio event handler as well
This commit is contained in:
parent
6031f36185
commit
e9e2afe2ee
2 changed files with 28 additions and 18 deletions
|
@ -93,6 +93,8 @@ var updateUsername = function (socket) {
|
|||
console.log(response);
|
||||
if (response.success && response.username == username) {
|
||||
socket.emit('update_username', { username: username });
|
||||
} else {
|
||||
addStatusMessage("Failed to updated username.")
|
||||
}
|
||||
});
|
||||
return username;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue