fix: show registration overview (#3002)

* fix: show registration overview

* fix: render error page to avoid possible loop
This commit is contained in:
Fabi
2022-01-18 08:46:31 +01:00
committed by GitHub
parent 7ea618121e
commit 456d32dd0d
7 changed files with 152 additions and 15 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ func (l *Login) jwtExtractionUserNotFound(w http.ResponseWriter, r *http.Request
err = nil
}
if !idpConfig.AutoRegister {
l.renderExternalNotFoundOption(w, r, authReq, err)
l.renderExternalNotFoundOption(w, r, authReq, nil, nil, nil, nil, err)
return
}
authReq, err = l.authRepo.AuthRequestByID(r.Context(), authReq.ID, authReq.AgentID)