Click or drag to resize
ValidationHelperValidateHash Method (String, String, Boolean, Boolean, String, String)

Note: This API is now obsolete.

Validates the hash for the given value.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("Use method ValidateHash(value, hash, settings)")]
public static bool ValidateHash(
	string value,
	string hash,
	bool userSpecific,
	bool redirect = true,
	string customSalt = null,
	string hashSalt = null
)

Parameters

value
Type: SystemString
Value
hash
Type: SystemString
Hash
userSpecific
Type: SystemBoolean
Indicates if the hash string is bound to current user
redirect (Optional)
Type: SystemBoolean
Whether or not should method redirect.
customSalt (Optional)
Type: SystemString
Custom salt string.
hashSalt (Optional)
Type: SystemString
Hash salt string. This salt represent the place from where the method is called.

Return Value

Type: Boolean
See Also