Commit 68cd18ce authored by webchick's avatar webchick

Issue #2328995 by znerol: Remove unused and defective WebTestBase::drupalGetToken().

parent 7d588410
......@@ -724,14 +724,6 @@ protected function drupalUserIsLoggedIn($account) {
return (bool) db_query("SELECT sid FROM {users_field_data} u INNER JOIN {sessions} s ON u.uid = s.uid AND u.default_langcode = 1 WHERE s.sid = :sid", array(':sid' => Crypt::hashBase64($account->session_id)))->fetchField();
}
/**
* Generate a token for the currently logged in user.
*/
protected function drupalGetToken($value = '') {
$private_key = \Drupal::service('private_key')->get();
return Crypt::hmacBase64($value, $this->session_id . $private_key);
}
/**
* Logs a user out of the internal browser and confirms.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment