QueryHelperValidateHash Method (String, String, String, String, Boolean) |
Validates given QueryString against hash.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax public static bool ValidateHash(
string name,
string purpose,
string salt,
string excludedParameters = null,
bool validateWithoutExcludedParameters = false
)
Parameters
- name
- Type: SystemString
Name of hash parameter in query string - purpose
- Type: SystemString
Hash purpose - salt
- Type: SystemString
Custom hash salt - excludedParameters (Optional)
- Type: SystemString
Parameters to exclude from hash validation. Multiple names separated by ';'. - validateWithoutExcludedParameters (Optional)
- Type: SystemBoolean
Indicates if the query string is validated without the excluded parameters if validation with excluded parameters fails
Return Value
Type:
BooleanTrue if query string is valid.
See Also