Skip to content
Snippets Groups Projects
Commit af1c0c89 authored by Vishal Choudhary's avatar Vishal Choudhary Committed by Steven Ayers
Browse files

Issue #3368890 by Vishal Choudhary, bluegeek9: Unable to change admin user password

parent fa2a7b1e
No related branches found
No related tags found
1 merge request!36Issue #3368890: Unable to change admin user password
......@@ -200,7 +200,8 @@ class LoginValidatorLoginForm extends LoginValidatorBase {
*/
public function validateCredentialsLoggedIn(UserInterface $account): int {
$this->drupalUser = $account;
$data = $this->externalAuth->getAuthData((int) $account->id(), 'ldap_user');
$user_id = (int) $account->id();
$data = $this->externalAuth->getAuthData($user_id, 'ldap_user');
if (!empty($data) && $data['authname']) {
$this->authName = $data['authname'];
$this->drupalUserAuthMapped = TRUE;
......
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