Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-09-19 20:19:47 +0400
committerTom Needham <needham.thomas@gmail.com>2012-09-19 20:19:47 +0400
commit1954f80fa3f819d0e6e33eff8022ad0c47eb957c (patch)
tree90d97601bfb73c9b7ff2e351fe11b30dcefdf7da /lib
parenta5c42edbe5ce7c9c47af8ac89d6c28806b80cd08 (diff)
Don't store users password hash when exporting.
Diffstat (limited to 'lib')
-rw-r--r--lib/migrate.php14
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 );
}