ThalKod / discord-clone

A "Discord clone" with Socket.io, Node.js & MongoDB... Create channel, invite other people to your channel, chat with everyone...
MIT License
153 stars 81 forks source link

adding username to register page? #201

Open Zebraslive opened 4 years ago

Zebraslive commented 4 years ago

what files do I need to modify to add an additional field to the register form. I already edited register.ejs with the new username input field.

I just want to allow user to choose username when registering.

ThalKod commented 4 years ago

You should update the local signup strategy of passport to take into account the new field when registering a user. https://github.com/ThalKod/discord-clone/blob/master/config/passport.js