修复dex错误展示

Signed-off-by: Chenyang Gao <gps949@outlook.com>
This commit is contained in:
Chenyang Gao
2023-05-16 17:03:30 +08:00
parent 6c385739c0
commit d2443669e8
2 changed files with 3 additions and 3 deletions

View File

@@ -37,10 +37,10 @@ func (h *Mirage) DexErrHandler(
w http.ResponseWriter,
r *http.Request,
) {
dexErrCode, err := strconv.Atoi(r.Form.Get("dexerr-status"))
dexErrCode, err := strconv.Atoi(r.URL.Query().Get("code"))
if err != nil {
dexErrCode = 500
}
dexErrDescription := r.Form.Get("dexerr-description")
dexErrDescription := r.URL.Query().Get("desc")
h.ErrMessage(w, r, dexErrCode, dexErrDescription)
}

2
dex

Submodule dex updated: b2cac87e10...1b5076bf3a