Template
usernames lowercased
This commit is contained in:
1 parent
b629a7014e
commit
5c3c54b4a9
1 file changed
+1
@@ -10,6 +10,7 @@ const instance = new mongoose.Schema(
|
|||||||
username: {
|
username: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true,
|
required: true,
|
||||||
|
lowercase: true,
|
||||||
unique: true,
|
unique: true,
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
|
|||||||
Reference in new issue
Block a user