Commit graph

4 commits

Author SHA1 Message Date
Brad Jorsch
5d9bc35dd6 ExternalUserNames: Handle otherwise-usable names with lowercase first letter
ExternalUserNames::applyPrefix() should probably apply the prefix to
otherwise-usable names that would fail User::isUsableName() only because
of a lowercase first letter (or other non-normalization that
User::getCanonicalName() fixes).

Bug: T211450
Change-Id: If695432d6b683442bd74ee160064c950b09c924a
2020-02-03 15:43:52 -05:00
Thalia
a81ffbc57e Set content language for test to en to ensure it passes
Change-Id: I5bff92e304795ac4f76fd07f12f3598fbf816f39
2019-06-03 13:44:11 -04:00
Amir Sarabadani
15cff85748 Add ExternalUserNames::getLocal() to get local part of username
Bug: T189320
Change-Id: I99908ced218c45ecbb23f390f065170292f153b4
2018-03-09 20:53:54 +01:00
Amir Sarabadani
dc4089b268 Move methods for handling external usernames to a dedicated class
This makes things centralized to reduce maintenance cost and also
enables me to use this methods in Wikibase to handle RC injection

Bug: T185034
Change-Id: Ic8c602e316144ccb5b05c69a0cc607cd53e38912
2018-01-18 21:02:49 +01:00