You are here

function captcha_validate_strict_equality in CAPTCHA 8

Same name and namespace in other branches
  1. 6.2 captcha.module \captcha_validate_strict_equality()
  2. 7 captcha.module \captcha_validate_strict_equality()

CAPTCHA validation function to tests strict equality.

Parameters

string $solution: The solution of the test.

string $response: The response to the test.

Return value

bool TRUE when case insensitive equal, FALSE otherwise.

2 string references to 'captcha_validate_strict_equality'
Captcha::getInfo in src/Element/Captcha.php
Returns the element properties for this element.
captcha_validate in ./captcha.module
CAPTCHA validation handler.

File

./captcha.module, line 321
This module enables basic CAPTCHA functionality.

Code

function captcha_validate_strict_equality($solution, $response) {
  return $solution === $response;
}