# Open the login modal automatically

**URL:** https://meta.discourse.org/t/open-the-login-modal-automatically/273671
**Category:** Development
**Created:** [August 2, 2023, 3:28pm UTC](https://meta.discourse.org/t/open-the-login-modal-automatically/273671 "2023-08-02T15:28:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [August 2, 2023, 3:28pm UTC](https://meta.discourse.org/t/open-the-login-modal-automatically/273671/1 "2023-08-02T15:28:08Z")

</div>

Continuing the discussion from [Open the login popup immediately when accessing the website](https://meta.discourse.org/t/open-the-login-popup-immediately-when-accessing-the-website/265094/14):

I’ve modified @Don’s theme component to automatically open the “login” modal instead of the “createAccount” modal. In case someone wants to use it:

[https://github.com/nachocab/discourse-open-login-modal-automatically](https://github.com/nachocab/discourse-open-login-modal-automatically)
