钉钉绑定禁止使用超管
This commit is contained in:
parent
2f23e61732
commit
5a72b3bda9
@ -219,6 +219,10 @@ namespace WaterCloud.Web.Controllers
|
||||
{
|
||||
request.localurl = "";
|
||||
}
|
||||
if (GlobalContext.SystemConfig.SysemUserCode == request.userName)
|
||||
{
|
||||
throw new Exception("禁止使用超管账号");
|
||||
}
|
||||
try
|
||||
{
|
||||
if (!await CheckIP())
|
||||
|
||||
@ -250,6 +250,10 @@ namespace WaterCloud.Web.Controllers
|
||||
{
|
||||
localurl = "";
|
||||
}
|
||||
if (GlobalContext.SystemConfig.SysemUserCode == username)
|
||||
{
|
||||
throw new Exception("禁止使用超管账号");
|
||||
}
|
||||
try
|
||||
{
|
||||
if (!await CheckIP())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user