forked from mindoc-org/mindoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* go mod update * feat: change to new wxwork sso login * fix: can't log in by workwx browser * fix: workwx auto regist * fix: change app.conf.example * fix: workwx account can't be disabled * fix: workwx account delete * fix: workwx bind error * feat: optimize wecom login * feat: rewrite dingtalk login * feat: rewrite dingtalk login * feat: optimize auth2 login
- Loading branch information
1 parent
745c16b
commit e417fc2
Showing
17 changed files
with
1,905 additions
and
760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
package conf | ||
|
||
import ( | ||
"github.com/beego/beego/v2/server/web" | ||
"github.com/beego/beego/v2/server/web" | ||
) | ||
|
||
type WorkWeixinConf struct { | ||
CorpId string // 企业ID | ||
AgentId string // 应用ID | ||
Secret string // 应用密钥 | ||
ContactSecret string // 通讯录密钥 | ||
CorpId string // 企业ID | ||
AgentId string // 应用ID | ||
Secret string // 应用密钥 | ||
// ContactSecret string // 通讯录密钥 | ||
} | ||
|
||
func GetWorkWeixinConfig() *WorkWeixinConf { | ||
corpid, _ := web.AppConfig.String("workweixin_corpid") | ||
agentid, _ := web.AppConfig.String("workweixin_agentid") | ||
secret, _ := web.AppConfig.String("workweixin_secret") | ||
contact_secret, _ := web.AppConfig.String("workweixin_contact_secret") | ||
corpid, _ := web.AppConfig.String("workweixin_corpid") | ||
agentid, _ := web.AppConfig.String("workweixin_agentid") | ||
secret, _ := web.AppConfig.String("workweixin_secret") | ||
// contact_secret, _ := web.AppConfig.String("workweixin_contact_secret") | ||
|
||
c := &WorkWeixinConf{ | ||
CorpId: corpid, | ||
AgentId: agentid, | ||
Secret: secret, | ||
ContactSecret: contact_secret, | ||
} | ||
return c | ||
c := &WorkWeixinConf{ | ||
CorpId: corpid, | ||
AgentId: agentid, | ||
Secret: secret, | ||
// ContactSecret: contact_secret, | ||
} | ||
return c | ||
} |
Oops, something went wrong.