You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i use Craft::$app->security->validateData() equivalent in twig - craft.app.security.validateData('hashes_string'), and i place something else then proper hashed data in parameter, it returns empty string instead of false. Docs mention it should be checked for false value:
$foo = Craft::$app->request->getPost('foo');
$foo = Craft::$app->security->validateData($foo);
if ($foo !== false) {
// data is valid
}
The text was updated successfully, but these errors were encountered:
I'm not really sure if it counts as bug.
When i use
Craft::$app->security->validateData()
equivalent in twig -craft.app.security.validateData('hashes_string')
, and i place something else then proper hashed data in parameter, it returns empty string instead of false. Docs mention it should be checked forfalse
value:The text was updated successfully, but these errors were encountered: