Skip to content
Snippets Groups Projects
Commit 68cd18ce authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 7d588410
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment