Skip to content
Snippets Groups Projects
Commit e50abdd3 authored by Robin Appelman's avatar Robin Appelman
Browse files

limit the length of the mysql username during setup

parent 1b920fb5
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ class OC_Setup { ...@@ -99,7 +99,7 @@ class OC_Setup {
//use the admin login data for the new database user //use the admin login data for the new database user
//add prefix to the mysql user name to prevent collissions //add prefix to the mysql user name to prevent collissions
$dbusername='oc_mysql_'.$username; $dbusername=substr('oc_mysql_'.$username,0,16);
//hash the password so we don't need to store the admin config in the config file //hash the password so we don't need to store the admin config in the config file
$dbpassword=md5(time().$password); $dbpassword=md5(time().$password);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment