forked from ddrilling/AsbCloudServer
Fixed error text back in AuthController.Register().
This commit is contained in:
parent
1d26c3dc9d
commit
16e17c0559
@ -63,7 +63,7 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
{
|
{
|
||||||
const string roleName = "Администратор";
|
const string roleName = "Администратор";
|
||||||
if (!User.IsInRole(roleName))
|
if (!User.IsInRole(roleName))
|
||||||
return Forbid($"You must be in {roleName}.");
|
return Forbid($"You must be an {roleName}.");
|
||||||
|
|
||||||
var code = authService.Register(user);
|
var code = authService.Register(user);
|
||||||
return code switch
|
return code switch
|
||||||
|
Loading…
Reference in New Issue
Block a user