Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth: Allow '.' in NormalizeUsername #4690

Merged
merged 4 commits into from Jun 28, 2019
Merged

auth: Allow '.' in NormalizeUsername #4690

merged 4 commits into from Jun 28, 2019

Conversation

tsenart
Copy link
Contributor

@tsenart tsenart commented Jun 27, 2019

Fixes #4674

@tsenart tsenart added the auth label Jun 27, 2019
@tsenart tsenart added this to the 3.6 milestone Jun 27, 2019
cmd/frontend/auth/auth.go Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tsenart and others added 2 commits June 28, 2019 11:26
Co-Authored-By: Quinn Slack <qslack@qslack.com>
@codecov
Copy link

codecov bot commented Jun 28, 2019

Codecov Report

Merging #4690 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #4690      +/-   ##
==========================================
+ Coverage   47.83%   47.83%   +<.01%     
==========================================
  Files         725      725              
  Lines       44235    44235              
  Branches     1758     1758              
==========================================
+ Hits        21158    21160       +2     
+ Misses      21084    21083       -1     
+ Partials     1993     1992       -1
Impacted Files Coverage Δ
cmd/frontend/auth/auth.go 29.62% <100%> (ø) ⬆️
...d/frontend/internal/authz/bitbucketserver/store.go 79.88% <0%> (+1.18%) ⬆️

@tsenart tsenart merged commit edfd4bc into master Jun 28, 2019
@tsenart tsenart deleted the core/lenient-username branch June 28, 2019 11:15
slimsag pushed a commit that referenced this pull request Jul 2, 2019
* auth: Allow '.' in NormalizeUsername

Fixes #4674

* Update CHANGELOG

* Update CHANGELOG.md

Co-Authored-By: Quinn Slack <qslack@qslack.com>

* fixup! Fix TestMiddleware
tsenart added a commit that referenced this pull request Jul 17, 2019
In #4690, we made it possible to create usernames from SSO signups that include dots.

But it was still not possible to change or manually create an account with a username that
includes a dot in the UI. This PR fixes that.

For consistency, we allow dots in org names too.

Fixes #4909, #4920
tsenart added a commit that referenced this pull request Jul 17, 2019
In #4690, we made it possible to create usernames from SSO signups that include dots. But that would have failed, as I found out working on this, due to a database constraint that needed to be updated.

Additionally, it was still not possible to change or manually create an account with a username that
includes a dot in the UI. This PR fixes that too.

For consistency, we allow dots in org names as well.

Fixes #4909, #4920
keegancsmith pushed a commit that referenced this pull request Jul 17, 2019
In #4690, we made it possible to create usernames from SSO signups that include dots. But that would have failed, as I found out working on this, due to a database constraint that needed to be updated.

Additionally, it was still not possible to change or manually create an account with a username that
includes a dot in the UI. This PR fixes that too.

For consistency, we allow dots in org names as well.

Fixes #4909, #4920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom (non-hyphen) username normalization
3 participants