Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not display DB wizard when all is done in config.php #25

Closed
pierrecdn opened this issue Jul 17, 2015 · 2 comments
Closed

Do not display DB wizard when all is done in config.php #25

pierrecdn opened this issue Jul 17, 2015 · 2 comments

Comments

@pierrecdn
Copy link

Hi,

I just cloned ''1.16.003'' and see that when I configure everything in config.php

$db['host'] = "<mysql_ip>";
$db['user'] = "root";
$db['pass'] = "<amazing-pw>";
$db['name'] = "phpipam";
$db['port'] = 3306;

the DB wizard is still displayed (first two steps), and I've to set again the properties.

step1

step2

It could be swapped if the user did it, but displayed if there are blank fields.

@phpipam
Copy link
Owner

phpipam commented Jul 22, 2015

Hi, usually the user that installs phpipam (on GUI) must have higher privileges to create databases. User entered in config.php should only have privileges to phpipam database and not all others, this is the reason for distinction.

@pierrecdn
Copy link
Author

Okay. From my point of view, it's can be strange to propose a great form for privileged user and next editing a config file for the "standard user".

  • Maybe SHOW GRANTS FOR CURRENT_USER(); can do the job of switching regarding the context (connected with a privileged user or not).
  • The privileged user could also create the non-privileged 'phpipam' user.

My goal for pierrecdn/phpipam was to find a quick trick to bypass the first 2 steps of the installer (install the DB if it not exists already and if the config.php user is allowed to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants