Skip to content

New User creation #16

@goteamtim

Description

@goteamtim

Hey I think I found a potential issue when creating a new user. If something happened during the creation on the server side the callback would still return true allowing the user to chat with an undefined username. I think a way to solve this would be to wrap the new user creation in a try catch. I have done the changes here (https://github.com/goteamtim/ioChat/blob/newUser/src/server/server.js). Since I had not posted about this before I made the change I figured I would post an issue rather than a pull request. Any thoughts on this? Should I do a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions