Skip to content
Snippets Groups Projects
Verified Commit 5dead754 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Username nebude email

parent 5f1e82c0
Branches
No related tags found
No related merge requests found
Pipeline #201 passed
...@@ -231,7 +231,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -231,7 +231,7 @@ class Controller extends \Piwik\Plugin\Controller
throw new Exception(Piwik::translate("LoginOIDC_ExceptionUserNotFoundAndNoEmail")); throw new Exception(Piwik::translate("LoginOIDC_ExceptionUserNotFoundAndNoEmail"));
} }
$matomoUserLogin = $result->email; $matomoUserLogin = $result->preferred_username;
// Set an invalid pre-hashed password, to block the user from logging in by password // Set an invalid pre-hashed password, to block the user from logging in by password
Access::getInstance()->doAsSuperUser(function () use ($matomoUserLogin, $result) { Access::getInstance()->doAsSuperUser(function () use ($matomoUserLogin, $result) {
UsersManagerApi::getInstance()->addUser($matomoUserLogin, UsersManagerApi::getInstance()->addUser($matomoUserLogin,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment