Skip to content

Hub UI displays username in lower case even if actual GitHub username contains both lower and upper case #288

Closed
@vinamra28

Description

Expected Behavior

Hub UI should display the username in the same way the user has kept in Github. Example my github username is fooBar but Hub UI displays my username as foobar.

Actual Behavior

Hub UI should display the username in same way we have in Github. example my Github username is fooBar so Hub UI should also display fooBar

Steps to Reproduce the Problem

  1. Have a github username such that it has both lowercase and uppercase letters.
  2. Login into Hub UI and see the username on top right corner.

Additional Info

Probable place where we need to fix is

user.GithubLogin = strings.ToLower(ghUser.GetLogin())

and the query needs to be updated as
Where("LOWER(github_login) = ?", strings.ToLower(ghUser.GetLogin()))

/good-first-issue

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions