SES-112 Fixed bug with registering the same user multiple times #37
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user