[Pkg-owncloud-commits] [owncloud] 40/73: Don't store users password hash when exporting.
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:06 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.
commit 1954f80fa3f819d0e6e33eff8022ad0c47eb957c
Author: Tom Needham <needham.thomas at gmail.com>
Date: Wed Sep 19 16:19:47 2012 +0000
Don't store users password hash when exporting.
---
lib/migrate.php | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/lib/migrate.php b/lib/migrate.php
index 39cb283..18a442a 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -439,19 +439,7 @@ class OC_Migrate{
'exportedby' => OC_User::getUser(),
'exporttype' => self::$exporttype
);
- // Add hash if user export
- if( self::$exporttype == 'user' ){
- $query = OC_DB::prepare( "SELECT password FROM *PREFIX*users WHERE uid = ?" );
- $result = $query->execute( array( self::$uid ) );
- $row = $result->fetchRow();
- $hash = $row ? $row['password'] : false;
- if( !$hash ){
- OC_Log::write( 'migration', 'Failed to get the users password hash', OC_log::ERROR);
- return false;
- }
- $info['hash'] = $hash;
- $info['exporteduser'] = self::$uid;
- }
+
if( !is_array( $array ) ){
OC_Log::write( 'migration', 'Supplied $array was not an array in getExportInfo()', OC_Log::ERROR );
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list