钉钉绑定禁止使用超管

This commit is contained in:
12888491 2022-11-16 13:54:04 +08:00
parent 2f23e61732
commit 5a72b3bda9
2 changed files with 8 additions and 0 deletions

View File

@ -219,6 +219,10 @@ namespace WaterCloud.Web.Controllers
{
request.localurl = "";
}
if (GlobalContext.SystemConfig.SysemUserCode == request.userName)
{
throw new Exception("禁止使用超管账号");
}
try
{
if (!await CheckIP())

View File

@ -250,6 +250,10 @@ namespace WaterCloud.Web.Controllers
{
localurl = "";
}
if (GlobalContext.SystemConfig.SysemUserCode == username)
{
throw new Exception("禁止使用超管账号");
}
try
{
if (!await CheckIP())