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

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

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


Commits:
ec1a809c by ushindi bienvenu at 2026-08-24T13:01:48+00:00
[FIX] Generated admin password display


(cherry picked from commit 4d68b00c37720a2b017a0358d239b372ac43174c)

Co-authored-by: ushindi bienvenu <[email protected]>
- - - - -


1 changed file:

- templates/tiki-install.tpl


Changes:

=====================================
templates/tiki-install.tpl
=====================================
@@ -552,8 +552,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>
@@ -610,6 +610,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}
@@ -815,6 +818,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>
@@ -861,6 +867,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>
@@ -882,8 +891,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>
@@ -899,6 +908,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>
@@ -910,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 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/ec1a809ce0de19566facf46cc7f7d18cbefcf43e

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ec1a809ce0de19566facf46cc7f7d18cbefcf43e
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.