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

Commit

Permalink
Fix login before upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Sep 14, 2015
1 parent 1871984 commit e339363
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,13 @@ public function loginAction()
}
}

$instanceSalt = Zend_Registry::get('configGlobal')->get('password_prefix');
$instanceSalt = Zend_Registry::get('configGlobal')->get('password_prefix', false);

// Necessary for upgrades to 3.4.1.
if ($instanceSalt === false) {
$instanceSalt = Zend_Registry::get('configGlobal')->password->prefix;
}

$currentVersion = UtilityComponent::getCurrentModuleVersion('core');
if ($currentVersion === false) {
throw new Zend_Exception('Core version is undefined.');
Expand Down

0 comments on commit e339363

Please sign in to comment.