Use canonical usernames throughout AccountsManager

This commit is contained in:
Jon Chambers
2021-11-15 11:31:01 -05:00
committed by Jon Chambers
parent efb410444b
commit 342323a7e6
2 changed files with 11 additions and 6 deletions

View File

@@ -624,7 +624,7 @@ public class AccountController {
rateLimiters.getUsernameSetLimiter().validate(auth.getAccount().getUuid());
try {
accounts.setUsername(auth.getAccount(), UsernameValidator.getCanonicalUsername(username));
accounts.setUsername(auth.getAccount(), username);
} catch (final UsernameNotAvailableException e) {
return Response.status(Response.Status.CONFLICT).build();
}