OAuth nickname to username

王权利请求将fix/oauth-username合并到master

Created by: ghost

This uses the oauth nickname, when present, as the username.

Fix for issue #5813 (closed). Replaces PR #5824.

For LDAP to work as expected, requires https://github.com/gitlabhq/omniauth-ldap/pull/7 to be merged.

合并请求报告