openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b5e176d54f0cb3a0305cc773f6afb532cacdc9c4
parent f3ed739a3d37d3a5327f5d0ff51afacc5c8060ec
Author: Jan Dankert <devnull@localhost>
Date:   Thu,  6 Sep 2018 01:20:33 +0200

Kennwort "admin" bereits als MD5 setzen. Da eh auf die neuste DB-Version aktualisiert wird, ist das kein Problem, da der Algo in Version 6 auf 2 (=MD5) gesetzt wird.

Diffstat:
modules/database-update/update/DBVersion000001.class.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/database-update/update/DBVersion000001.class.php b/modules/database-update/update/DBVersion000001.class.php @@ -324,7 +324,8 @@ class DBVersion000001 extends DbVersion // Wenn noch kein Benutzer vorhanden, dann einen anlegen. if ( $countUsers == 0 ) { - $sql = $db->sql("INSERT INTO {{user}} (id,name,password,ldap_dn,fullname,tel,mail,descr,style,is_admin) VALUES(1,'admin','admin','','Administrator','','','Account for administration tasks.','default',1)",$db->id); + // Hashing the admin password with MD5. In Version 6 the Algo will be set to 2 (=MD5). + $sql = $db->sql("INSERT INTO {{user}} (id,name,password,ldap_dn,fullname,tel,mail,descr,style,is_admin) VALUES(1,'admin','21232f297a57a5a743894a0e4a801fc3','','Administrator','','','Account for administration tasks.','default',1)",$db->id); $sql->query(); $db->commit(); }