loginname is not necessarily username
Merge pull request #6100 from owncloud/fix_loginnameusage

loginname is not necessarily username