"dingtalk QR login" frontend

This commit is contained in:
LawyZHENG
2021-03-25 16:30:12 +08:00
parent c768845a45
commit 5404db07eb
3 changed files with 64 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ func (c *AccountController) Prepare() {
c.Data["xsrfdata"] = template.HTML(c.XSRFFormHTML())
c.Data["corpID"] = beego.AppConfig.String("dingtalk_corpid")
c.Data["ENABLE_QR_DINGTALK"] = (beego.AppConfig.String("dingtalk_corpid") != "")
c.Data["dingtalk_qr_key"] = beego.AppConfig.String("dingtalk_qr_key")
if !c.EnableXSRF {
return