# Bug OP-12354 - Anyone can sign up using Google even if user registration is disabled

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Immediate |
| Module |  |
| Target versions | 12.5.3 |
| Observed in versions | 12.5.0 |
| Sprint | 12.5.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.5.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.  In a cloud environment, disable user registration
2.  Try signing in with a Google account

### What is the buggy behavior?

  - You will be able to sign in. A new user is created for you.

### What is the expected behavior?

  - You shouldn't be allowed to sign in. No user should be created.

### Important note

This behaviour was implemented on purpose for self-configured omniauth providers in <mention class="mention" data-id="42390" data-type="work_package" data-text="##42390">##42390</mention>. But in the case of the cloud where Google is configured automatically this has the unintended side effect that anyone with a Google account will be able to register in a cloud instance.

This doesn't actually allow these user to do anything at all. Neither can they see anything outside of public projects and the landing page. Which they shouldn't be able to do when login is required, however.

### Environment information

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

v12.5.2
