Fix for new login procedure
[ccoop.git] / ccoop-update
index 8b74b76a050458394eb2354244a1e6aa294723a2..ffb7960d0f416aac893df657a2e9b4e6462b3e8b 100755 (executable)
@@ -137,13 +137,13 @@ function fetchall() {
     fi
     
     inform "WGET login form"
-    fetch https://www.coopanet.com/banque/cpt/
+    fetch https://www.coopanet.com/banque/sso/ssologin.do
     
-    inform "WGET bql/connexion.do"
-    fetch "--post-data=site=C&codeUtil=$COOPLOGIN&motPasse=$COOPPASSWORD&pbValider=Valider" https://www.coopanet.com/banque/cpt/bql/connexion.do
+    inform "WGET /banque/sso/co/connexion.do"
+    fetch "--post-data=site=C&codeUtil=$COOPLOGIN&motPasse=$COOPPASSWORD&pbValider=Valider" https://www.coopanet.com/banque/sso/co/connexion.do
     
-    inform "WGET cpt/connexion.do"
-    fetch https://www.coopanet.com/banque/cpt/cpt/connexion.do
+    inform "WGET banque/cpt/incoopanetj2ee.do"
+    fetch https://www.coopanet.com/banque/cpt/incoopanetj2ee.do
  
     if grep -q "Vous venez de quitter  COOP@NET" $TMP; then
         echo "Can't log in. Check password" >&2
@@ -177,8 +177,8 @@ function fetchall() {
     done
     
     # logout
-    inform "WGET reconnect.do"
-    fetch https://www.coopanet.com/banque/cpt/communs/reconnect.do
+    inform "WGET /banque/sso/ssologout.do"
+    fetch https://www.coopanet.com/banque/sso/ssologout.do
     
     # delete tmp files
     rm -f $COOKIEJAR $TMP