Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulanger committed Dec 21, 2017
2 parents 07c1de6 + 99b3313 commit 276efd9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bibliograph/services/class/bibliograph/service/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ protected function importInitialData()
);
$this->log("Importing initial user data ....", QCL_LOG_SETUP );
$this->getApplication()->importInitialData($dataPaths);

// hash passwords
$userModel->findAll();
while($userModel->loadNext()){
$password = $userModel->getPassword();
$hashed = $this->getApplication()->getAccessController()->generateHash( $password );
$userModel->setPassword($hashed)->save();
}
}

// result
Expand Down Expand Up @@ -535,4 +543,4 @@ protected function finish()
$this->dispatchClientMessage("application.reload");
return "OK";
}
}
}

0 comments on commit 276efd9

Please sign in to comment.