Icon View Incident Report

Serious Serious
Reported By: Paul Coshott
Reported On: 8/7/2017
For: Version 2.06 Build 5
# 4573 Calling the TEWBServerRequest ComputeHash Method Twice Causes Corrupted or Blank Data to Be Returned

am writing a data server module to allow the users to change their password. I am sending the UserId, old password and new password.

I am using ComputeHash on both passwords, but for some reason, only the first one works. The second one is always blank.

The code is below.

As the code stands, the TempOldPasswordHash variable is filled correctly, but the TempNewPasswordHash is blank.

If I move the New password lines before the old password lines, the variable TempNewPasswordHash is filled correctly, and the TempOldPasswordHash is blank.

TempOldPassword := TempContent.Values['OldPassword'];
TempOldPasswordHash := ComputeHash(htSHA256,UTF8Encode(TempOldPassword));
TempNewPassword := TempContent.Values['NewPassword'];
TempNewPasswordHash := ComputeHash(htSHA256,UTF8Encode(TempNewPassword));



Resolution Resolution
Fixed Problem on 9/12/2017 in version 2.06 build 6


Products Affected Products Affected
Elevate Web Builder Modules

Image