Skip to content

Commit

Permalink
[TASK] Ensure login module is completely loaded and processed
Browse files Browse the repository at this point in the history
Resolves: #91265
Releases: master, 9.5
Change-Id: I5e413f91ae92ba666a74606767c4ecd081407f79
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64389
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
  • Loading branch information
ohader committed May 2, 2020
1 parent 40f2402 commit 29cf05d
Show file tree
Hide file tree
Showing 5 changed files with 454 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import 'TYPO3/CMS/Backend/Input/Clearable';
*/
class BackendLogin {
public options: any;
public ready: boolean = true;

constructor() {
this.options = {
Expand All @@ -43,8 +44,12 @@ class BackendLogin {

// prevent opening the login form in the backend frameset
if (top.location.href !== location.href) {
this.ready = false;
top.location.href = location.href;
}
if (this.ready) {
document.body.setAttribute('data-typo3-login-ready', 'true');
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"phpstan/phpstan": "^0.12.13",
"rector/rector": "^0.7.14",
"typo3/cms-styleguide": "~10.0.2",
"typo3/testing-framework": "^6.2.3"
"typo3/testing-framework": "^6.2.4"
},
"suggest": {
"ext-gd": "GDlib/Freetype is required for building images with text (GIFBUILDER) and can also be used to scale images",
Expand Down
Loading

0 comments on commit 29cf05d

Please sign in to comment.