Skip to content

Commit 1265555

Browse files
committed
always set display-name
1 parent 116b387 commit 1265555

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Command/UserAdd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6969
}
7070

7171
try {
72+
$this->backend->setDisplayName($uid, $input->getOption('display-name'));
7273
$email = $input->getOption('email');
7374
if (!empty($email)) {
7475
$user = $this->userManager->get($uid);
7576
$user->setSystemEMailAddress($email);
76-
$this->backend->setDisplayName($uid, $input->getOption('display-name'));
7777
}
7878
} catch (\Exception $e) {
7979
$output->writeln('<error>SAML create user Email and DisplayName ' . $e->getMessage() . '</error>');

0 commit comments

Comments
 (0)