usernames lowercased

This commit is contained in:
Ben Elferink committed 2021-09-29 10:48:48 +03:00
1 parent b629a7014e
commit 5c3c54b4a9
1 file changed
+1
+1
View File
@@ -10,6 +10,7 @@ const instance = new mongoose.Schema(
username: {
type: String,
required: true,
lowercase: true,
unique: true,
},
password: {