0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-03-12 23:47:25 +00:00
nextcloud_server/lib/private/Accounts
Max aa709291cf
fix: always use display name from correct backend
Overwrite the display name after the account is initialized
when using an instacne of IGetDisplayNameBackend.

Before when using a variation of user_oidc and registering
a Backend.php implementing IGetDisplayNameBackend
the personal setting page shows 'uid'.

The UserManager/AccountManager seems not to use consistently
the correct backend.

The correct backend is used in this sequence:

server/lib/private/TemplateLayout.php

          $userDisplayName = \OC_User::getDisplayName();
          $this->assign(user_displayname, $userDisplayName);

In the settings page, it definitely not calls the registered backend,
but seems to fall back to default Backend and shows (usually) uid
or a value from the standard account property table.

Signed-off-by: Max <max@nextcloud.com>
2023-08-22 09:47:51 +02:00
..
Account.php Add method to set all account properties from json 2022-03-17 16:33:19 +00:00
AccountManager.php fix: always use display name from correct backend 2023-08-22 09:47:51 +02:00
AccountProperty.php composer run cs:fix 2023-01-20 11:45:08 +01:00
AccountPropertyCollection.php composer run cs:fix 2023-01-20 11:45:08 +01:00
Hooks.php composer run cs:fix 2023-01-20 11:45:08 +01:00
TAccountsHelper.php Add new account properties 2021-10-19 04:44:40 +00:00