DEV Community

Discussion on: Authentication in NodeJS With Express and Mongo - CodeLab #1

Collapse
dipakkr profile image
Deepak Kumar Author

In JavaScript to convert a string to lowercase you can string method 'toLowerCase()'

I hope it answers your question.

Collapse
cwills0114 profile image
Cwills0114 • Edited on

Thanks for the response,

I have managed to figure this out.
Just as simple as adding a Constraint into the model for
Lowercase: true