From 5fb816b6b5c9aab0b85c796a9429ee67fe3a93c0 Mon Sep 17 00:00:00 2001
From: efalcy <efalcy@git-test.afi-sa.fr>
Date: Tue, 3 Dec 2013 18:09:40 +0000
Subject: [PATCH] Opsys webservices : correction de creation d'un utilisateur
 alors qu'il existe deja + recuperation du mot de passe depuis le ws

---
 application/modules/admin/controllers/AuthController.php | 1 +
 library/Class/WebService/SIGB/Opsys/Service.php          | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/application/modules/admin/controllers/AuthController.php b/application/modules/admin/controllers/AuthController.php
index e66cb4271f2..752f2b79f6d 100644
--- a/application/modules/admin/controllers/AuthController.php
+++ b/application/modules/admin/controllers/AuthController.php
@@ -46,6 +46,7 @@ class Admin_AuthController extends Zend_Controller_Action
 	// Formulaire d'identification
 	//----------------------------------------------------------------------------------
 	function loginAction() {
+		xdebug_break();
 		$this->view->message = '';
 		if (!$this->_request->isPost())
 			return;
diff --git a/library/Class/WebService/SIGB/Opsys/Service.php b/library/Class/WebService/SIGB/Opsys/Service.php
index f1a7177b140..e750ca3749c 100644
--- a/library/Class/WebService/SIGB/Opsys/Service.php
+++ b/library/Class/WebService/SIGB/Opsys/Service.php
@@ -249,9 +249,7 @@ class Class_WebService_SIGB_Opsys_Service extends Class_WebService_SIGB_Abstract
 			$prenom = $entite_result->findAttribute('Prénom');
 
 		$emprunteur->setPrenom($prenom);
-		
-		$emprunteur->updateUser($user);
-		$user->save();
+		$emprunteur->setPassword($user->getPassword());
 		return $emprunteur;
 	}
 
-- 
GitLab