Hi Guys,
I have this small project http://airsoft.pmcosta.pt/ it's a directory of Airsoft playing teams in Portugal, this was a great opportunity to test a few Kentico things.
Specifically the Bizforms, data is driven from a Bizform index, and users are able to add the details correctly. I've also built a Search Results driver Google Map web part.
My frustration now is trying to allow users to edit their records.
I though about using https://docs.kentico.com/display/K81/Query+string+hashing so I can send a unique url to the user that added the original record, e.g. http://airsoft.pmcosta.pt/edit.aspx?id=123&hash=1233434343 if the user attempts to access another id's record it will fail cause the hash won't match.
However I can't get the validation to work properly, it's always false, as a test I built the query string as such:
QueryHelper.BuildQueryWithHash(false, "ID", "75")
that returned me:
?ID=75&hash=50d53fc4864db2b4b7e4793e2c5bcc00f455f952438bb4fe526cc1aaaa9f7879
i then visit the url using the exact query above but on the custom web part (clone of On-line form) when I use
QueryHelper.ValidateHash("hash", settings: new HashSettings { Redirect = false, UserSpecific = false })
in the SetupControl it is always false! it's driving me crazy...
Can anyone help? I maybe missing something simple, but I've checked everything CMSHashStringSalt is there since the beginning.
Thanks,
P.