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

Commit 9937d2f

Browse files
author
Michael Grauer
committed
BUG: refs #952. Updating legacy password in api call with password param.
1 parent ba276b5 commit 9937d2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/api/controllers/components/ApiComponent.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,6 +2513,10 @@ function userApikeyDefault($args)
25132513
$instanceSalt = Zend_Registry::get('configGlobal')->password->prefix;
25142514
if($authModule || $userModel->hashExists(hash($userDao->getHashAlg(), $instanceSalt.$userDao->getSalt().$password)))
25152515
{
2516+
if($userDao->getSalt() == '')
2517+
{
2518+
$passwordHash = $userModel->convertLegacyPasswordHash($userDao, $password);
2519+
}
25162520
$defaultApiKey = $userApiModel->getByAppAndEmail('Default', $email)->getApikey();
25172521
return array('apikey' => $defaultApiKey);
25182522
}

0 commit comments

Comments
 (0)