mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Use user-provided username in displayName()
This replaces `davUser()`, which is replaced by a numeric ID when using LDAP, by the username that was actually used for logging in. Fixes #836 Signed-off-by: Felix Eckhofer <felix@eckhofer.com>
This commit is contained in:
parent
a140720901
commit
ace142bb23
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