修改BUG:比较登陆用户名应该忽略大小写
This commit is contained in:
parent
2998a282bb
commit
2642e830dd
|
@ -38,7 +38,7 @@ namespace Bootstrap.Admin.Controllers
|
||||||
}
|
}
|
||||||
var ret = false;
|
var ret = false;
|
||||||
var userName = User.Identity.Name;
|
var userName = User.Identity.Name;
|
||||||
if (value.UserName == userName && !LgbPrincipal.IsAdmin(userName))
|
if (value.UserName.Equals(userName, System.StringComparison.OrdinalIgnoreCase) && !LgbPrincipal.IsAdmin(userName))
|
||||||
{
|
{
|
||||||
if (value.UserStatus == 1)
|
if (value.UserStatus == 1)
|
||||||
ret = UserHelper.SaveUserInfoByName(value);
|
ret = UserHelper.SaveUserInfoByName(value);
|
||||||
|
|
Loading…
Reference in New Issue