Create event consistency test + test code cleanup

This commit is contained in:
ljacqu
2016-04-29 22:39:46 +02:00
parent 8d489efffd
commit 7f44ecdb40
5 changed files with 139 additions and 22 deletions
@@ -44,8 +44,7 @@ public final class MigrationService {
if (hash.startsWith("$SHA$")) {
ConsoleLogger.showError("Skipping conversion for " + auth.getNickname() + "; detected SHA hash");
} else {
HashedPassword hashedPassword = authmeSha256.computeHash(
auth.getPassword().getHash(), auth.getNickname());
HashedPassword hashedPassword = authmeSha256.computeHash(hash, auth.getNickname());
auth.setPassword(hashedPassword);
dataSource.updatePassword(auth);
}