This commit is contained in:
邹宗楠
2023-01-31 09:16:28 +08:00
parent 63687148fb
commit c3c7c7ddbd
2 changed files with 9 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ package controllers
import (
"encoding/base64"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"strings"
@@ -131,6 +132,7 @@ func (c *Auth2Controller) Login() {
params.AuthSecret = GetComposedCode2(&c.Controller, params.AuthSecret)
}
ctx := auth2.NewContext(c.Ctx.ResponseWriter, c.Ctx.Request)
globals.SugarLogger.Debugf("======参数login === %s", utils.Format4Output(params, false))
authInfo, err := auth2.Login(ctx, params.AuthType, params.AuthID, params.AuthIDType, params.AuthSecret)
// TODO 兼容没有取到authid2的错误
if err == nil && authInfo.AuthBindInfo != nil {