[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Generated admin password display

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a8c302fc7ef5_3818d1482081b@gitlab-sidekiq-low-urgency-cpu-bound-v2-fbc867496-bvvrl.mail>

ushindi bienvenu pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
4d68b00c by ushindi bienvenu at 2026-08-24T13:50:54+02:00
[FIX] Generated admin password display

- - - - -


1 changed file:

- templates/tiki-install.tpl


Changes:

=====================================
templates/tiki-install.tpl
=====================================
@@ -561,8 +561,8 @@
                         <h1>{if isset($smarty.post.update)}{tr}Review the Upgrade{/tr}{else}{tr}Review the Installation{/tr}{/if}</h1>
                         {remarksbox type=confirm title="{if isset($smarty.post.update)}{tr}Upgrade complete{/tr}{else}{tr}Installation complete{/tr}{/if}" close="n"}
                             <p>{tr}Your database has been configured and Tiki is ready to run!{/tr}
-                                {if isset($smarty.post.scratch)}
-                                    {tr}If this is your first install, your admin password is <strong>admin</strong>.{/tr}
+                                {if isset($smarty.post.scratch, $defaultpass)}
+                                    {tr _0="<strong>{$defaultpass}</strong>"}Your default administrator password is %0.{/tr}
                                 {/if}
                                 {tr}You can now log in into Tiki as user <strong>admin</strong> and start configuring the application.{/tr}
                             </p>
@@ -619,6 +619,9 @@
                     <div class="text-center">
                         <input type="hidden" name="install_step" value="6">
                         <input type="hidden" name="install_type" value="{$install_type}">
+                        {if isset($smarty.post.scratch)}
+                            {$default_password_field}
+                        {/if}
                         <input type="submit" class="btn btn-primary" value=" {tr}Continue{/tr} ">
                         {if $multi}<input type="hidden" name="multi" value="{$multi}">{/if}
                         {if $lang}<input type="hidden" name="lang" value="{$lang}">{/if}
@@ -829,6 +832,9 @@
                             {if $lang}<input type="hidden" name="lang" value="{$lang}">{/if}
                             <input type="hidden" name="install_step" value="7">
                             <input type="hidden" name="install_type" value="{$install_type}">
+                            {if $install_type eq 'scratch'}
+                                {$default_password_field}
+                            {/if}
                             <input type="hidden" name="general_settings" value="y">
                             <input type="submit" class="btn btn-primary" value="{tr}Continue{/tr}">
                         </div>
@@ -875,6 +881,9 @@
                             {if $multi}<input type="hidden" name="multi" value="{$multi}">{/if}
                             {if $lang}<input type="hidden" name="lang" value="{$lang}">{/if}
                             <input type="hidden" name="install_step" value="8">
+                            {if $install_type eq 'scratch'}
+                                {$default_password_field}
+                            {/if}
                             <input type="hidden" name="install_type" value="{$install_type}">
                             <input type="submit" class="btn btn-primary" value="{tr}Continue{/tr}">
                         </div>
@@ -896,8 +905,8 @@
                     {/if}
 
                     <p>
-                        {if $install_type eq 'scratch'}
-                            {tr}If this is your first install, your admin password is <strong>admin</strong>.{/tr}
+                        {if $install_type eq 'scratch' && isset($defaultpass)}
+                            {tr _0="<strong>{$defaultpass}</strong>"}Your default administrator password is %0.{/tr}
                         {/if}
                         {tr}You can now log in into Tiki as user <strong>admin</strong> and start configuring the application.{/tr}
                     </p>
@@ -913,6 +922,9 @@
                                         <input type="hidden" name="multi" value="{$multi|escape}">
                                     {/if}
                                     <input type="hidden" name="install_type" value="{$install_type}">
+                                    {if $install_type eq 'scratch'}
+                                        {$default_password_field}
+                                    {/if}
                                     <input type="hidden" name="install_step" value="9">
                                     <input type="submit" value="{tr}Enter Tiki and Lock Installer{/tr} ({tr}Recommended{/tr})" class="btn btn-primary">
                                 </form>
@@ -924,6 +936,9 @@
                                         <input type="hidden" name="multi" value="{$multi|escape}">
                                     {/if}
                                     <input type="hidden" name="install_type" value="{$install_type}">
+                                    {if $install_type eq 'scratch'}
+                                        {$default_password_field}
+                                    {/if}
                                     <input type="hidden" name="install_step" value="9">
                                     <input type="submit" value="{tr}Enter Tiki Without Locking Installer{/tr}" class="btn btn-warning">
                                     <br><em><span class="text-warning">{icon name="warning"}</span> {tr}Not recommended due to security risk{/tr}.</em>



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4d68b00c37720a2b017a0358d239b372ac43174c

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4d68b00c37720a2b017a0358d239b372ac43174c
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.