From aaa270a52f635427003e939f5b896c17dfe64046 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Wed, 25 Jul 2018 20:20:09 +0200 Subject: [PATCH] Hotfix for old user to database migration (this will be included in the v1.16.0 release) --- migrations/0027.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migrations/0027.php b/migrations/0027.php index 4474adbc..3f294cd7 100644 --- a/migrations/0027.php +++ b/migrations/0027.php @@ -4,12 +4,12 @@ $db = $this->DatabaseService->GetDbConnection(); -if (defined('HTTP_USER')) +if (defined('GROCY_HTTP_USER')) { // Migrate old user defined in config file to database $newUserRow = $db->users()->createRow(array( - 'username' => HTTP_USER, - 'password' => password_hash(HTTP_PASSWORD, PASSWORD_DEFAULT) + 'username' => GROCY_HTTP_USER, + 'password' => password_hash(GROCY_HTTP_PASSWORD, PASSWORD_DEFAULT) )); $newUserRow->save(); }