SES-112 Fixed bug with registering the same user multiple times #37

Merged
s426134 merged 2 commits from SES-112 into dev 2020-12-20 16:02:47 +01:00
Showing only changes of commit d6db2b6b56 - Show all commits

View File

@ -71,7 +71,6 @@ namespace SessionCompanion.Controllers
Password = userRegisterModel.Password, Password = userRegisterModel.Password,
Username = userRegisterModel.Username Username = userRegisterModel.Username
}; };
var user = await _service.SearchUserByUsername(userRegisterModel.Username);
await _service.Create(userModel); await _service.Create(userModel);
await _service.SaveAsync(); await _service.SaveAsync();