feat: display login succeeded page only for native apps (#2839)

This commit is contained in:
Livio Amstutz
2021-12-14 09:47:49 +01:00
committed by GitHub
parent 2265fffd8e
commit 79f7c1198b
6 changed files with 112 additions and 19 deletions
+2
View File
@@ -278,6 +278,8 @@ func (l *Login) chooseNextStep(w http.ResponseWriter, r *http.Request, authReq *
l.chooseNextStep(w, r, authReq, 1, err)
return
}
l.redirectToCallback(w, r, authReq)
case *domain.LoginSucceededStep:
l.redirectToLoginSuccess(w, r, authReq.ID)
case *domain.ChangePasswordStep:
l.renderChangePassword(w, r, authReq, err)