[TikiWiki-commits] [Git][tikiwiki/tiki][24.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 <6a8986be2aaec_3818ce2821858@gitlab-sidekiq-low-urgency-cpu-bound-v2-6dbfb999b6-7mr42.mail>

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


Commits:
0509077b by ushindi bienvenu at 2026-08-22T11:23:40+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


(cherry picked from commit 71bc6daf92d2e01ff364b3e97d9b96eb3bcb2230)

cc5cb9b3 [FIX] Define set_system_administrator_password to fix scratch install hang

Co-authored-by: Espoir Baraka <[email protected]>
- - - - -


1 changed file:

- installer/installlib.php


Changes:

=====================================
installer/installlib.php
=====================================
@@ -249,6 +249,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/0509077bf4a61aac54b8f41613dc08099392a82e

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