Skip to content
Snippets Groups Projects
Commit aba9a9e4 authored by John Rearick's avatar John Rearick Committed by Sascha Grossenbacher
Browse files

Issue #3332611 by jrearick: Saving a user overrides the authname

parent c97611b5
No related branches found
No related tags found
1 merge request!34Issue #3289683 by Berdir, japerry, Project Update Bot: New 4.x branch for...
......@@ -205,7 +205,12 @@ function simplesamlphp_auth_user_form_submit($form, FormStateInterface $form_sta
// This can be altered if needed. See simplesamlphp_auth.api.php for
// details.
$authname = $account->getAccountName();
if ($current_authname = $authmap->get($account->id(), 'simplesamlphp_auth')) {
$authname = $current_authname;
}
\Drupal::modulehandler()->alter('simplesamlphp_auth_account_authname', $authname, $account);
$externalauth->linkExistingAccount($authname, 'simplesamlphp_auth', $account);
}
// Remove this user from the ExternalAuth authmap table.
......
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