Fixed error text back in AuthController.Register().

This commit is contained in:
KharchenkoVladimir 2021-10-19 17:21:07 +05:00
parent 1d26c3dc9d
commit 16e17c0559

View File

@ -63,7 +63,7 @@ namespace AsbCloudWebApi.Controllers
{
const string roleName = "Администратор";
if (!User.IsInRole(roleName))
return Forbid($"You must be in {roleName}.");
return Forbid($"You must be an {roleName}.");
var code = authService.Register(user);
return code switch