Commit ce253934 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-3971 (Member CSV import with default password may fail)

parent 30233113
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -393,6 +393,7 @@ class Hook_task_import_member_csv
                if ($using_default_password) {
                    // Minimise setting time, so we aren't taking ages encrypting the same password (which presumably we know isn't very secure anyway)
                    $cr_bak = get_option('crypt_ratchet');
                    require_code('config2');
                    set_option('crypt_ratchet', '4');
                }

@@ -402,6 +403,7 @@ class Hook_task_import_member_csv
                $num_added++;

                if ($using_default_password) {
                    require_code('config2');
                    set_option('crypt_ratchet', $cr_bak);
                }
            } else {