This commit is contained in:
Dane Everitt 2020-06-28 15:43:44 -07:00
parent 6143b656a3
commit 2ed3763d21
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
17 changed files with 18 additions and 19 deletions

View file

@ -140,7 +140,7 @@ class DatabaseRepository extends EloquentRepository implements DatabaseRepositor
*/
public function createUser(string $username, string $remote, string $password, $max_connections): bool
{
if (!$max_connections) {
if (! $max_connections) {
return $this->run(sprintf('CREATE USER `%s`@`%s` IDENTIFIED BY \'%s\'', $username, $remote, $password));
} else {
return $this->run(sprintf('CREATE USER `%s`@`%s` IDENTIFIED BY \'%s\' WITH MAX_USER_CONNECTIONS %s', $username, $remote, $password, $max_connections));