From d3ce2cacd6461ca7551b0faec2b0ee425bbbc51f Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Tue, 1 May 2012 14:40:56 +0200
Subject: [PATCH] OC_User: handle success properly

---
 lib/user.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/user.php b/lib/user.php
index 75a63b76c1..57ddb9e511 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -283,7 +283,7 @@ class OC_User {
 			foreach(self::$_usedBackends as $backend){
 				if($backend->implementsActions(OC_USER_BACKEND_SET_PASSWORD)){
 					if($backend->userExists($uid)){
-						$success = $backend->setPassword($uid,$password);
+						$success |= $backend->setPassword($uid,$password);
 					}
 				}
 			}
-- 
GitLab