lib/private/Security/CSRF/CsrfTokenManager.php
/**
	 * Verifies whether the provided token is valid.
	 *
	 * @param CsrfToken $token
	 * @return bool
	 */
Verifies whether the provided token is valid.
@param CsrfToken $token
@return bool
Verifies whether the provided token is valid . @param CsrfToken $token @return bool
public function isTokenValid(CsrfToken $token) {
		if(!$this->sessionStorage->hasToken()) {
			return false;
		}
		return hash_equals(
			$this->sessionStorage->getToken(),
			$token->getDecryptedValue()
		);
	}
public function isTokenValid ( CsrfToken $ token ) { if ( ! $ this -> sessionStorage -> hasToken ( ) ) { return false ; } return hash_equals ( $ this -> sessionStorage -> getToken ( ) , $ token -> getDecryptedValue ( ) ) ; }
Verifies whether the provided token is valid.
Verifies whether the provided token is valid .