From c318b9421f541c884f06da82ae6320b5e0b4e2b1 Mon Sep 17 00:00:00 2001 From: orandev <63342732+orandev@users.noreply.github.com> Date: Fri, 9 Oct 2020 12:20:10 +0200 Subject: [PATCH] Fix incorrect key name in "Login flow fix" 'name' key was put in flowData table, but 'token' key was retrieved from this table, thus triggering the following error: Undefined index: token at /nextcloud/apps/user_saml/lib/Controller/SAMLController.php#306 Signed-off-by: orandev <63342732+orandev@users.noreply.github.com> --- lib/Controller/SAMLController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index d04a60f..978a211 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -193,7 +193,7 @@ class SAMLController extends Controller { $flowData['cf1'] = $this->session->get(ClientFlowLoginController::STATE_NAME); } else if ($this->session->get(ClientFlowLoginV2Controller::TOKEN_NAME) !== null) { $flowData['cf2'] = [ - 'name' => $this->session->get(ClientFlowLoginV2Controller::TOKEN_NAME), + 'token' => $this->session->get(ClientFlowLoginV2Controller::TOKEN_NAME), 'state' => $this->session->get(ClientFlowLoginV2Controller::STATE_NAME), ]; }