Index: typo3/sysext/t3skin/resources/login.js =================================================================== --- typo3/sysext/t3skin/resources/login.js (revision 7829) +++ typo3/sysext/t3skin/resources/login.js (working copy) @@ -10,6 +10,7 @@ TYPO3BackendLogin.registerEventListeners(); TYPO3BackendLogin.setVisibilityOfClearIcon($('t3-username'), $('t3-username-clearIcon')); TYPO3BackendLogin.setVisibilityOfClearIcon($('t3-password'), $('t3-password-clearIcon')); + TYPO3BackendLogin.checkCookieSupport(); TYPO3BackendLogin.checkForLogintypeCookie(); TYPO3BackendLogin.checkForInterfaceCookie(); $('t3-username').activate(); @@ -157,8 +158,38 @@ TYPO3BackendLogin.setLogintypeCookie('username'); }, - + /** + * Checks browser's cookie support + */ + checkCookieSupport: function() { + Ext.util.Cookies.set('typo3-login-cookiecheck', true); + cookieEnabled = Ext.util.Cookies.get('typo3-login-cookiecheck'); + + if (!cookieEnabled) { + TYPO3BackendLogin.showCookieWarning() + } + + Ext.util.Cookies.clear('typo3-login-cookiecheck'); + }, + + /** + * Hides input fields and shows cookie warning + */ + showCookieWarning: function() { + Ext.get('t3-login-form-fields').setVisibilityMode(Ext.Element.DISPLAY).hide(); + Ext.get('t3-nocookies-error').show(); + }, + + /** + * Hides cookie warning and shows input fields + */ + hideCookieWarning: function() { + Ext.get('t3-nocookies-error').setVisibilityMode(Ext.Element.DISPLAY).hide(); + Ext.get('t3-login-form-fields').show(); + }, + + /** * Store a login type in a cookie to save it for future visits * Login type means wether you login by username/password or OpenID */ @@ -218,4 +249,4 @@ } }; -Event.observe(window, 'load', TYPO3BackendLogin.start); +Ext.onReady(TYPO3BackendLogin.start, TYPO3BackendLogin); \ No newline at end of file Index: typo3/sysext/t3skin/stylesheets/structure/login_screen.css =================================================================== --- typo3/sysext/t3skin/stylesheets/structure/login_screen.css (revision 7829) +++ typo3/sysext/t3skin/stylesheets/structure/login_screen.css (working copy) @@ -101,7 +101,6 @@ } body#typo3-index-php #t3-login-form-fields { - display: none; margin: 0; padding: 14px 0 5px 30px; } @@ -140,6 +139,10 @@ padding: 10px; } +#t3-nocookies-ignore { + margin-top: 10px; +} + body#typo3-index-php div#t3-copyright-notice { margin-top: 15px; } Index: typo3/sysext/t3skin/stylesheets/visual/login_screen.css =================================================================== --- typo3/sysext/t3skin/stylesheets/visual/login_screen.css (revision 7829) +++ typo3/sysext/t3skin/stylesheets/visual/login_screen.css (working copy) @@ -195,6 +195,10 @@ color: #be0027; } +#t3-nocookies-ignore { + text-align: center; +} + .t3-login-alert-warning { background: #fbf6de; border: 1px solid #b1905c; Index: typo3/sysext/t3skin/templates/login.html =================================================================== --- typo3/sysext/t3skin/templates/login.html (revision 7829) +++ typo3/sysext/t3skin/templates/login.html (working copy) @@ -17,24 +17,13 @@ ###FORM###
-