Skip to content

Commit 20b1aa3

Browse files
committed
Merge branch 'release/v1.2.3'
2 parents b1e80f5 + 35d58c7 commit 20b1aa3

4 files changed

Lines changed: 377 additions & 115 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
- nothing, yet
99

10+
## [1.2.3] - 2020-07-23
11+
### Fixed
12+
- use `$GLOBALS['BE_USER']` instead of `TYPO3\CMS\Core\Authentication\BackendUserAuthentication` in `..\Classes\Hook\UserSettings` to detect authenticator enabled state
13+
1014
## [1.2.2] - 2020-07-06
1115
### Fixed
1216
- use `TYPO3\CMS\Core\Authentication\BackendUserAuthentication` in `..\Classes\Hook\UserSettings` to detect authenticator enabled state
@@ -184,7 +188,8 @@ to meet frontend requirements
184188
## [1.0.0] - 2018-06-17
185189
- Initial development
186190

187-
[Unreleased]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.2...HEAD
191+
[Unreleased]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.3...HEAD
192+
[1.2.2]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.2...v1.2.3
188193
[1.2.2]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.1...v1.2.2
189194
[1.2.1]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.2.0...v1.2.1
190195
[1.2.0]: https://github.com/codeFareith/cf_google_authenticator/compare/v1.1.7...v1.2.0

Classes/Hook/UserSettings.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use CodeFareith\CfGoogleAuthenticator\Utility\Base32Utility;
2222
use CodeFareith\CfGoogleAuthenticator\Utility\PathUtility;
2323
use Exception;
24-
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication;
2524
use TYPO3\CMS\Core\Utility\GeneralUtility;
2625
use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
2726
use TYPO3\CMS\Fluid\View\StandaloneView;
@@ -207,8 +206,7 @@ private function getSecretKey(): string
207206
private function isGoogleAuthenticatorEnabled(): bool
208207
{
209208
if ($this->data['type'] === 'user' && !is_array($this->data['row'])) {
210-
$backendUserAuthentication = $this->objectManager()->get(BackendUserAuthentication::class);
211-
$this->data['row'] = $backendUserAuthentication->user;
209+
$this->data['row'] = $GLOBALS['BE_USER']->user;
212210
}
213211
return (bool) $this->data['row']['tx_cfgoogleauthenticator_enabled'];
214212
}

0 commit comments

Comments
 (0)