mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Lower the role name before using it
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
113a743b91
commit
d84234da13
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue