diff --git a/src/models/loginModel.ts b/src/models/loginModel.ts index 9b76a310..258497ad 100644 --- a/src/models/loginModel.ts +++ b/src/models/loginModel.ts @@ -24,7 +24,7 @@ const databaseAccountSchema = new Schema( { email: { type: String, required: true, unique: true }, password: { type: String, required: true }, - DisplayName: { type: String, required: true }, + DisplayName: { type: String, required: true, unique: true }, CountryCode: { type: String, required: true }, ClientType: { type: String }, CrossPlatformAllowed: { type: Boolean, required: true },