- replace literal 'admin' with const

This commit is contained in:
gazebo
2019-03-12 15:53:13 +08:00
parent c46f1597f1
commit 3113e9d603
8 changed files with 14 additions and 9 deletions

View File

@@ -77,7 +77,7 @@ func (a *DefAuther) UnionFindAuthBind(curAuthType string, unionAuthTypeList []st
authBindEx = &auth2.AuthBindEx{
AuthBind: *authBind,
}
err = a.AddAuthBind(authBindEx, "admin") // 自动绑定
err = a.AddAuthBind(authBindEx, model.AdminName) // 自动绑定
} else if dao.IsNoRowsError(err) {
err = nil
}