+ # As above, it's possible to have multiple accounts in the database with only
+ # differences in display_name case, for hysterical raisins. We need to bypass
+ # the validation checks to create users like this nowadays.
+ def test_login_username_password_duplicate
+ # Attempt to log in as one user, it should work
+ user = create(:user)
+ _uppercase_user = build(:user, :display_name => user.display_name.upcase).tap { |u| u.save(:validate => false) }