[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Define set_system_administrator_password to fix scratch install hang

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

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


Commits:
71bc6daf by Espoir Baraka at 2026-08-22T11:16:04+00:00
[FIX] Define set_system_administrator_password to fix scratch install hang
---
* [FIX] Define set_system_administrator_password to fix scratch install hang

See merge request tikiwiki/tiki!11036

- - - - -


1 changed file:

- installer/installlib.php


Changes:

=====================================
installer/installlib.php
=====================================
@@ -320,6 +320,12 @@ $PHP_CONFIG_FILE_PATH/php.ini or $httpd_conf.
 
 
 
+function set_system_administrator_password($randompass)
+{
+    global $installer;
+    $installer->query("UPDATE users_users SET hash=? WHERE userId=1", [ password_hash($randompass, PASSWORD_DEFAULT) ]);
+}
+
 // Try to see if we have an admin account
 /**
  * @param $api_tiki



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/71bc6daf92d2e01ff364b3e97d9b96eb3bcb2230

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