upate statel

This commit is contained in:
MickaelK 2025-09-05 13:38:18 +10:00
parent f8f26035fc
commit 612bfcbe34

View file

@ -162,5 +162,9 @@ func (this Server) CallbackHandler(ctx *App, res http.ResponseWriter, req *http.
SendErrorResult(res, ErrNotValid)
return
}
http.Redirect(res, req, fmt.Sprintf(uri+"?code=%s&state=%s", code, state), http.StatusSeeOther)
uri += "?code=" + code
if state != "" {
uri += "&state=" + state
}
http.Redirect(res, req, uri, http.StatusSeeOther)
}