]> source.dussan.org Git - nextcloud-server.git/commit
Don't force displayname if backend already provides one 3507/head
authorLukas Reschke <lukas@statuscode.ch>
Thu, 16 Feb 2017 12:23:04 +0000 (13:23 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 16 Feb 2017 12:55:48 +0000 (13:55 +0100)
commit92c74d2f9a4e916d1ea861c6959c8807e9944b46
tree7fd2671bf2eb5c7d44c28d6134bc71c5223dfede
parentf25c89461c986b31171270e2186d000030b8df2e
Don't force displayname if backend already provides one

`\OC_User::loginWithApache` is used in combination with backend mechanisms like our SSO / SAML integration. Those can optionally already provide a displayname using other means. For example by mapping SAML attributes.

The current approach makes it however impossible for backends using `\OCP\Authentication\IApacheBackend` to set a displayname on their own. Because the display name will simply be overwritten with the loginname.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/legacy/user.php