[BUGFIX] Adapt a broken namespace in SaltedPasswordService 19/58019/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 23 Aug 2018 23:36:30 +0000 (01:36 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 24 Aug 2018 06:56:52 +0000 (08:56 +0200)
Fixes two broken namespaces that went wrong when moving and
aliasing the salted password classes. The patch only affects
the deprecated and unused SaltedPasswordService.

Resolves: #85959
Related: #85833
Releases: master
Change-Id: Iad8c95a3b9bef60fe240a2010e9910df40c75825
Reviewed-on: https://review.typo3.org/58019
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Crypto/PasswordHashing/SaltedPasswordService.php

index 03d361c..d4ef51d 100644 (file)
@@ -81,7 +81,7 @@ class SaltedPasswordService extends AbstractAuthenticationService
      */
     public function init()
     {
-        $this->extConf = TYPO3\CMS\Core\Crypto\PasswordHashing\SaltedPasswordsUtility::returnExtConf();
+        $this->extConf = SaltedPasswordsUtility::returnExtConf();
         parent::init();
         return true;
     }
@@ -109,7 +109,7 @@ class SaltedPasswordService extends AbstractAuthenticationService
             if (!$validPasswd) {
                 $this->authenticationFailed = true;
             }
-            $defaultHashingClassName = TYPO3\CMS\Core\Crypto\PasswordHashing\SaltedPasswordsUtility::getDefaultSaltingHashingMethod();
+            $defaultHashingClassName = SaltedPasswordsUtility::getDefaultSaltingHashingMethod();
             $skip = false;
             // Test for wrong salted hashing method (only if current method is not related to default method)
             if ($validPasswd && get_class($this->objInstanceSaltedPW) !== $defaultHashingClassName && !is_subclass_of($this->objInstanceSaltedPW, $defaultHashingClassName)) {