Skip to content
Snippets Groups Projects
Commit e7327938 authored by Jérôme Tamarelle's avatar Jérôme Tamarelle
Browse files

Accept empty MySQL password for database auth.

parent d8443bf1
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ class auth_mysql extends auth_basic {
// set capabilities based upon config strings set
if (empty($this->cnf['server']) || empty($this->cnf['user']) ||
empty($this->cnf['password']) || empty($this->cnf['database'])){
!isset($this->cnf['password']) || empty($this->cnf['database'])){
if ($this->cnf['debug'])
msg("MySQL err: insufficient configuration.",-1,__LINE__,__FILE__);
$this->success = false;
......
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