Исправлен переход после регистрации
This commit is contained in:
parent
26966f9c8c
commit
8cddd1067c
@ -61,7 +61,7 @@ namespace HardwareShopClientApp.Controllers
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public void Enter(string email, string password)
|
||||
public IActionResult Enter(string email, string password)
|
||||
{
|
||||
if (string.IsNullOrEmpty(email) || string.IsNullOrEmpty(password))
|
||||
{
|
||||
@ -74,11 +74,11 @@ namespace HardwareShopClientApp.Controllers
|
||||
}
|
||||
if ((int)APIClient.User.Role == 1)
|
||||
{
|
||||
RedirectToAction("MainWorker", "Worker");
|
||||
return RedirectToAction("MainWorker", "Worker");
|
||||
}
|
||||
else
|
||||
{
|
||||
RedirectToAction("Goods", "Storekeeper");
|
||||
return RedirectToAction("Goods", "Storekeeper");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user