diff options
author | Joas Schilling <coding@schilljs.com> | 2016-12-09 16:41:01 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-12-09 16:41:01 +0100 |
commit | a5a35cda7c4e7f4888b3d4884a7b61b8fe02163a (patch) | |
tree | 695d154992a9fc0c146e8fae02b1b49f2781182b /lib/private/Setup | |
parent | 0d6134f512a4b7da5af03a208c27f24c5f0c82d6 (diff) | |
download | nextcloud-server-a5a35cda7c4e7f4888b3d4884a7b61b8fe02163a.tar.gz nextcloud-server-a5a35cda7c4e7f4888b3d4884a7b61b8fe02163a.zip |
Lower the role name before using it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Setup')
-rw-r--r-- | lib/private/Setup/PostgreSQL.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/PostgreSQL.php b/lib/private/Setup/PostgreSQL.php index 14325a18efe..085e8609ab2 100644 --- a/lib/private/Setup/PostgreSQL.php +++ b/lib/private/Setup/PostgreSQL.php @@ -60,7 +60,7 @@ class PostgreSQL extends AbstractDatabase { //use the admin login data for the new database user //add prefix to the postgresql user name to prevent collisions - $this->dbUser = 'oc_' . $username; + $this->dbUser = 'oc_' . strtolower($username); //create a new password so we don't need to store the admin config in the config file $this->dbPassword = \OC::$server->getSecureRandom()->generate(30, \OCP\Security\ISecureRandom::CHAR_LOWER . \OCP\Security\ISecureRandom::CHAR_DIGITS); |