diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-09-19 20:19:47 +0400 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-09-19 20:19:47 +0400 |
commit | 1954f80fa3f819d0e6e33eff8022ad0c47eb957c (patch) | |
tree | 90d97601bfb73c9b7ff2e351fe11b30dcefdf7da /lib | |
parent | a5c42edbe5ce7c9c47af8ac89d6c28806b80cd08 (diff) |
Don't store users password hash when exporting.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/migrate.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/migrate.php b/lib/migrate.php index 39cb2832c19..18a442aae95 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 ); } |