fix: user registration through IdP (#7893)

* fix: user registration through idp

* fix more nil pointer issues
This commit is contained in:
Livio Spring
2024-05-02 13:21:03 +00:00
committed by GitHub
parent 83c5066ab9
commit 482a46b198
3 changed files with 11 additions and 6 deletions
@@ -76,7 +76,7 @@ func (l *Login) renderOTPVerification(w http.ResponseWriter, r *http.Request, au
func (l *Login) handleOTPVerificationCheck(w http.ResponseWriter, r *http.Request) {
formData := new(mfaOTPFormData)
authReq, err := l.getAuthRequestAndParseData(r, formData)
if err != nil {
if authReq == nil || err != nil {
l.renderError(w, r, authReq, err)
return
}