From 0edb4ca4fdeebb9c390921e10805a699d7f4c1bc Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Thu, 16 Jul 2020 16:47:02 +0800 Subject: [PATCH] 'commit' --- dsSso/Controller/ControllerOauth2/ControllerOauth2.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dsSso/Controller/ControllerOauth2/ControllerOauth2.go b/dsSso/Controller/ControllerOauth2/ControllerOauth2.go index 4f28deac..1d836336 100644 --- a/dsSso/Controller/ControllerOauth2/ControllerOauth2.go +++ b/dsSso/Controller/ControllerOauth2/ControllerOauth2.go @@ -320,6 +320,15 @@ func authorizePost(context *gin.Context) { }) return } + + if CommonUtil.ConvertStringToInt(identityId)>1{ + context.JSON(http.StatusOK, Model.Res{ + Code: http.StatusNotImplemented, + Msg: "非管理员用户暂不能登录,敬请期待!!", + }) + return + } + } else { context.JSON(http.StatusOK, Model.Res{ Code: http.StatusNotImplemented,