@@ -845,14 +845,14 @@ public function startInstall(array $setup = null): void
845845 $ esSetup = [];
846846 }
847847
848- // check loginname
848+ // check login name
849849 if (!isset ($ setup ['loginname ' ])) {
850850 $ loginName = Filter::filterInput (INPUT_POST , 'loginname ' , FILTER_UNSAFE_RAW );
851851 } else {
852852 $ loginName = $ setup ['loginname ' ];
853853 }
854854 if (is_null ($ loginName )) {
855- echo '<p class="alert alert-danger"><strong>Error:</strong> Please add a loginname for your account.</p> ' ;
855+ echo '<p class="alert alert-danger"><strong>Error:</strong> Please add a login name for your account.</p> ' ;
856856 System::renderFooter (true );
857857 }
858858
@@ -863,8 +863,7 @@ public function startInstall(array $setup = null): void
863863 $ password = $ setup ['password ' ];
864864 }
865865 if (is_null ($ password )) {
866- echo '<p class="alert alert-danger"><strong>Error:</strong> Please add a password for the your ' .
867- 'account.</p> ' ;
866+ echo '<p class="alert alert-danger"><strong>Error:</strong> Please add a password for your account.</p> ' ;
868867 System::renderFooter (true );
869868 }
870869
@@ -873,16 +872,18 @@ public function startInstall(array $setup = null): void
873872 } else {
874873 $ passwordRetyped = $ setup ['password_retyped ' ];
875874 }
875+
876876 if (is_null ($ passwordRetyped )) {
877877 echo '<p class="alert alert-danger"><strong>Error:</strong> Please add a retyped password.</p> ' ;
878878 System::renderFooter (true );
879879 }
880880
881- if (strlen ($ password ) <= 5 || strlen ($ passwordRetyped ) <= 5 ) {
881+ if (strlen ($ password ) <= 7 || strlen ($ passwordRetyped ) <= 7 ) {
882882 echo '<p class="alert alert-danger"><strong>Error:</strong> Your password and retyped password are too ' .
883883 'short. Please set your password and your retyped password with a minimum of 6 characters.</p> ' ;
884884 System::renderFooter (true );
885885 }
886+
886887 if ($ password != $ passwordRetyped ) {
887888 echo '<p class="alert alert-danger"><strong>Error:</strong> Your password and retyped password are not ' .
888889 'equal. Please check your password and your retyped password.</p> ' ;
0 commit comments