Mark SAML users as so in database and disable local password changing then.

This commit is contained in:
Jan Böhmer 2023-02-21 00:29:50 +01:00
parent 78ec0f1ea3
commit 97c3b9002a
15 changed files with 1414 additions and 1264 deletions

View file

@ -32,6 +32,8 @@ class SamlUserFactory implements SamlUserFactoryInterface
$user->setName($username);
$user->setNeedPwChange(false);
$user->setPassword('$$SAML$$');
//This is a SAML user now!
$user->setSamlUser(true);
$user->setSamlAttributes($attributes);