Fix salt and password used in wrong position

fixes #5227
This commit is contained in:
Marius Hein 2013-11-27 11:28:12 +01:00
parent 93d233f37d
commit 5d31633eb5
3 changed files with 8 additions and 8 deletions

View File

@ -18,7 +18,7 @@ INSERT INTO account (
)
VALUES (
'icingaadmin',
'IepKgTTShC',
'52deddb5cc7a5769484fcb0fbc5981a7c62cd9f3ddbb8ff3ddb1b89ea324ad16',
'57cfd5746224be4f60c25d4e8514bec35ad2d01810723a138756b285898e71b2',
'43f8e0588eb39f1a41383b48def0b1fdc45e79b8f67194cccee4453eb3f4ea13',
1
);
);

View File

@ -22,7 +22,7 @@ INSERT INTO "account" (
)
VALUES (
'icingaadmin',
'IepKgTTShC',
'52deddb5cc7a5769484fcb0fbc5981a7c62cd9f3ddbb8ff3ddb1b89ea324ad16',
'57cfd5746224be4f60c25d4e8514bec35ad2d01810723a138756b285898e71b2',
'43f8e0588eb39f1a41383b48def0b1fdc45e79b8f67194cccee4453eb3f4ea13',
true
);
);

View File

@ -169,8 +169,8 @@ class DbUserBackendTest extends BaseTestCase
self::USER_NAME_COLUMN => $usr[self::USER_NAME_COLUMN],
self::PASSWORD_COLUMN => hash_hmac(
'sha256',
$usr[self::SALT_COLUMN],
$usr[self::PASSWORD_COLUMN]
$usr[self::PASSWORD_COLUMN],
$usr[self::SALT_COLUMN]
),
self::ACTIVE_COLUMN => $usr[self::ACTIVE_COLUMN],
self::SALT_COLUMN => $usr[self::SALT_COLUMN]