# Bug OP-7299 - Remapping oauth users fails if email or login contains upper case letters

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7299

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 11.0.0 |
| Observed in versions | 10.6.0 |
| Sprint | 11.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Steps to reproduce:**

1.  Create password-based user with upper case letters in their login and email
2.  Configure an OpenID Connect provider
3.  Enable `oauth_allow_remapping_of_existing_users`
4.  Try logging in via the provider with this user

### **Actual Behavior**

You see the registration form showing 2 errors: login taken, email taken.

### **Expected Behavior**

The user should be updated with the respective identity url and logged in.
