From 1a27e2c774b3dccfc350b163e9cc7b6d95e51282 Mon Sep 17 00:00:00 2001
From: "ext.sopra.yvallet@grandlyon.com" <ext.sopra.yvallet@grandlyon.com>
Date: Tue, 20 Oct 2020 13:14:31 +0200
Subject: [PATCH] fix client secret length

---
 main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go
index 8cce8c9..01f6972 100644
--- a/main.go
+++ b/main.go
@@ -423,7 +423,7 @@ func main() {
 			clientId = pageContent[clientIdStartIndex : clientIdStartIndex+clientIdLength]
 			//Check for client_secret
 			clientSecretKey := "client_secret="
-			clientSecretLength := 14
+			clientSecretLength := 16
 			clientSecretStartIndex := strings.Index(pageContent, clientSecretKey)
 			if clientSecretStartIndex == -1 {
 				log.Error("No client_secret found")
-- 
GitLab