Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

Commit

Permalink
encrypt module account cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
dazedcat19 committed Feb 12, 2020
1 parent 3baac73 commit 5de3f59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baseunits/WebsiteModules.pas
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ procedure TWebsiteModules.LoadFromFile;
jd.JSONToObject(jo2,Account);
if Account.Username<>'' then Account.Username := DecryptString(Account.Username);
if Account.Password<>'' then Account.Password := DecryptString(Account.Password);
if Account.Cookies<>'' then Account.Cookies := DecryptString(Account.Cookies);
if Account.Status=asChecking then
Account.Status:=asUnknown;
end;
Expand Down Expand Up @@ -1038,6 +1039,7 @@ procedure TWebsiteModules.SaveToFile;
jo2:=js.ObjectToJSON(Account);
jo2.Strings['Username']:=EncryptString(Account.Username);
jo2.Strings['Password']:=EncryptString(Account.Password);
jo2.Strings['Cookies']:=EncryptString(Account.Cookies);
jo.Add('Account',jo2);
end;
end;
Expand Down

0 comments on commit 5de3f59

Please sign in to comment.