mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Merge pull request #1459 from tribut/fix-ldap-display-name
Use user-provided username in `displayName()` - Fix #836
This commit is contained in:
commit
4dddf88569
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ void Account::setAvatar(const QImage &img)
|
|||
|
||||
QString Account::displayName() const
|
||||
{
|
||||
QString dn = QString("%1@%2").arg(davUser(), _url.host());
|
||||
QString dn = QString("%1@%2").arg(credentials()->user(), _url.host());
|
||||
int port = url().port();
|
||||
if (port > 0 && port != 80 && port != 443) {
|
||||
dn.append(QLatin1Char(':'));
|
||||
|
|
Loading…
Reference in a new issue