aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--models/users/user.schema.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/users/user.schema.ts b/models/users/user.schema.ts
index 5969604..f6a1c09 100644
--- a/models/users/user.schema.ts
+++ b/models/users/user.schema.ts
@@ -9,7 +9,8 @@ export const userSchema = new Schema({
username: {
type: String,
unique: true,
- required: true
+ required: true,
+ lowercase: true
},
password: {
type: String,