mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix: render authrequest id only if possible (#5823)
This commit is contained in:
parent
8d13f170e8
commit
098c27d3da
@ -327,7 +327,12 @@ func (l *Login) chooseNextStep(w http.ResponseWriter, r *http.Request, authReq *
|
|||||||
func (l *Login) renderInternalError(w http.ResponseWriter, r *http.Request, authReq *domain.AuthRequest, err error) {
|
func (l *Login) renderInternalError(w http.ResponseWriter, r *http.Request, authReq *domain.AuthRequest, err error) {
|
||||||
var msg string
|
var msg string
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logging.WithError(err).WithField("auth_req_id", authReq.ID).Error()
|
log := logging.WithError(err)
|
||||||
|
if authReq != nil {
|
||||||
|
log = log.WithField("auth_req_id", authReq.ID)
|
||||||
|
}
|
||||||
|
log.Error()
|
||||||
|
|
||||||
_, msg = l.getErrorMessage(r, err)
|
_, msg = l.getErrorMessage(r, err)
|
||||||
}
|
}
|
||||||
data := l.getBaseData(r, authReq, "Errors.Internal", "", "Internal", msg)
|
data := l.getBaseData(r, authReq, "Errors.Internal", "", "Internal", msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user