# Bypass the account creation modal when using OAuth2

**URL:** https://meta.discourse.org/t/bypass-the-account-creation-modal-when-using-oauth2/110123
**Category:** Support
**Created:** [February 26, 2019, 1:23pm UTC](https://meta.discourse.org/t/bypass-the-account-creation-modal-when-using-oauth2/110123 "2019-02-26T13:23:56Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![ryancey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryancey/32/99309_2.png) [@ryancey](https://meta.discourse.org/u/ryancey)
#### Post date: [March 1, 2019, 11:41am UTC](https://meta.discourse.org/t/bypass-the-account-creation-modal-when-using-oauth2/110123/6 "2019-03-01T11:41:32Z")

</div>

The ugly workaround I found for the time being:

- Enable local logins

- Create users beforehand via the API

- Create a new Component in the theme

In a nutshell, I allow local logins but hides the sign up button, and when the log in modal shows (wether it’s coming from a click on the log in button, the reply button…) the modal is hidden and it simulates a click on the OAuth2 login method.

You can throw stones at me until I figure out a cleaner, lower-level way to do this 🙂

---

_[View the full topic](https://meta.discourse.org/t/bypass-the-account-creation-modal-when-using-oauth2/110123)._
