Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit e339363

Browse files
author
Jamie Snape
committed
Fix login before upgrade
1 parent 1871984 commit e339363

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

core/controllers/UserController.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,13 @@ public function loginAction()
560560
}
561561
}
562562

563-
$instanceSalt = Zend_Registry::get('configGlobal')->get('password_prefix');
563+
$instanceSalt = Zend_Registry::get('configGlobal')->get('password_prefix', false);
564+
565+
// Necessary for upgrades to 3.4.1.
566+
if ($instanceSalt === false) {
567+
$instanceSalt = Zend_Registry::get('configGlobal')->password->prefix;
568+
}
569+
564570
$currentVersion = UtilityComponent::getCurrentModuleVersion('core');
565571
if ($currentVersion === false) {
566572
throw new Zend_Exception('Core version is undefined.');

0 commit comments

Comments
 (0)