Skip to content

Commit 3a98fd4

Browse files
authored
Merge pull request #61 from esnare/hash_equals_issue
Crypt::hashEquals is remove from Drupal 9
2 parents cc8cd6f + 3efd570 commit 3a98fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Auth/Source/External.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function getUser()
136136
$uid,
137137
$this->config->getCookieSalt() . \Drupal::service('private_key')->get()
138138
);
139-
if (!Crypt::hashEquals($hash, $cookie_hash)) {
139+
if (!hash_equals($hash, $cookie_hash)) {
140140
throw new Exception(
141141
'Cookie hash invalid. This indicates either tampering or an out of date drupal4ssp module.'
142142
);

0 commit comments

Comments
 (0)