From 230012b7b0d69fe1336d1e4403642c0420db78d7 Mon Sep 17 00:00:00 2001 From: Robert Paciorek Date: Sun, 1 Oct 2023 08:49:49 +0000 Subject: [PATCH] removal of the email uniqueness requirement --- src/Controllers/Common/RegistrationController.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Controllers/Common/RegistrationController.cs b/src/Controllers/Common/RegistrationController.cs index e71772f..fdb20ec 100644 --- a/src/Controllers/Common/RegistrationController.cs +++ b/src/Controllers/Common/RegistrationController.cs @@ -63,10 +63,7 @@ public class RegistrationController : Controller { }; // Check if user exists - if (ctx.Users.Count(e => e.Email == u.Email) > 0) { - return Ok(new RegistrationResult { Status = MembershipUserStatus.DuplicateEmail }); - } - else if (ctx.Users.Count(e => e.Username== u.Username) > 0) { + if (ctx.Users.Count(e => e.Username== u.Username) > 0) { return Ok(new RegistrationResult { Status = MembershipUserStatus.DuplicateUserName }); }