[BUFGIX] set password length to 8 in installtool 50/25050/2
authorStefan Froemken <froemken@gmail.com>
Tue, 29 Oct 2013 14:50:00 +0000 (15:50 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 30 Oct 2013 16:59:58 +0000 (17:59 +0100)
The installtool requires a password length of 8 letters,
but background of new password changes to yellow
after just 6 letters.

Resolves: #53159
Releases: 6.2
Change-Id: I6031e1a93af13f8db3fd1fb5a514da5746b7aa4e
Reviewed-on: https://review.typo3.org/25050
Reviewed-by: Steffen Müller
Tested-by: Steffen Müller
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/install/Resources/Public/Javascript/Install.js

index 0b7cb73..2f308a1 100644 (file)
@@ -312,8 +312,8 @@ $(document).ready(function() {
        $('.t3-install-form-password-strength').on('keyup', function() {
                var value = $(this).val();
                var strongRegex = new RegExp('^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$', 'g');
-               var mediumRegex = new RegExp('^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$', 'g');
-               var enoughRegex = new RegExp('(?=.{6,}).*', 'g');
+               var mediumRegex = new RegExp('^(?=.{8,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$', 'g');
+               var enoughRegex = new RegExp('(?=.{8,}).*', 'g');
 
                if (value.length == 0) {
                        $(this).attr('style', 'background-color:#FBB19B; border:1px solid #DC4C42');