From 911a543728d2be5bc86541ffa8415a3fbd44d538 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 26 Apr 2006 22:07:01 +0000 Subject: [PATCH] forbide root or mysql as an alternc account --- bureau/class/m_admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index cb4d1759..903e7a58 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -250,7 +250,7 @@ class m_admin { return false; } // Il ne peut pas être égal au login ou au nom de base systeme ! - if ($login==$L_MYSQL_DATABASE || $login==$L_MYSQL_LOGIN) { + if ($login==$L_MYSQL_DATABASE || $login==$L_MYSQL_LOGIN || $login=="mysql" || $login=="root") { $err->raise("admin",10); return false; }