# Login Popup doesn't work for private Discourse instance

**URL:** https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610
**Category:** Support
**Created:** [Juillet 21, 2016, 4:52 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610 "2016-07-21T16:52:31Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)
#### Post date: [Juillet 21, 2016, 4:52 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/1 "2016-07-21T16:52:31Z")

</div>

I have an instance where public registration is not allowed and new members must be invited by other members. When you go to [forum.com/login](http://forum.com/login), the login modal window doesn’t open automatically and you have to click on the login button to open it.

However, if I enable signups, but still keep the forum private, then [forum.com/signup](http://forum.com/signup) opens the signup modal window but [forum.com/login](http://forum.com/login) doesn’t open the login modal window.

If i make it a public forum, allowing public registrations and anonymous access, then both modal windows open, on [forum.com/login](http://forum.com/login) as well as [forum.com/signup](http://forum.com/signup)

I have tried removing css customizations. Any tips? Is this a bug?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Août 4, 2016, 1:07 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/4 "2016-08-04T13:07:41Z")

</div>

`www.forum.com/login` will show login modal _only_ when `login required` is disabled.

If the forum is not public (i.e. `login required` is enabled) then `www.forum.com/login` will always show login page.

---

<div class="post-metadata">

### Author: ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)
#### Post date: [Août 4, 2016, 2:56 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/5 "2016-08-04T14:56:30Z")

</div>

@techAPJ Isn’t that strange? If I have a private forum, shouldn’t the homepage be a login page where you can login directly (through a modal) instead of having to click the login button?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [Août 4, 2016, 6:39 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/6 "2016-08-04T18:39:35Z")

</div>

If the forum is login required, then why wouldn’t /login bring up the login modal as it does on forums where login isn’t required?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [Août 5, 2016, 1:49 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/7 "2016-08-05T01:49:39Z")

</div>

> [@P16](#):
>
> If I have a private forum, shouldn’t the homepage be a login page where you can login directly (through a modal) instead of having to click the login button?

> [@watchmanmonitor](#):
>
> If the forum is login required, then why wouldn’t /login bring up the login modal as it does on forums where login isn’t required?

Because in case of login required forums `/login` page is their _homepage_ which is there to give anonymous users more information about the community they want access to, and how to get access.

In case of public forums since the forum is open, anonymous user directly sees what the community is all about via `/latest` or `/categories` page, so `/login` page doesn’t makes sense and we show login modal instead.

Also, in case of login required forums, some Admins want to further customize their `/login` page by adding background image, customized text, etc. So it doesn’t make sense to force login modal there. Some examples of such communities:

> **[Squarespace — Login](https://login.squarespace.com/api/1/login/oauth/provider/authorize?client_id=wAHMs0yNCd2CyyoI0Eclva4GmZ1qqRPx&redirect_uri=https%3A%2F%2Faccount.squarespace.com%2Foauth-connect&state=v2.local.ypy7qsO_t6wc-RyYBLiiNorILM-yVBv0CDcVf7J048ccR65N83gOwM0u_n7REdN1cVoK9U9-Q8cbfGZ1tZjRsSLElYEEgTIWhrDjtbSu5IX6wuQLd8zX-2nnwq1BrzRiNXj8FBOe8vFseVOwGwTF6qLuE1vQ5nUHC__-piPCgpy4wDXKwJJVf6YAH5IPKImmWe0F1SVB32LWmU81NsU-D2MxjJ7mHHNFhccTTG78HE8jgcI2KUB4_nuEszqCrQYKroxPZUcHB8zG_T6_H9TU7kTbO5_iL4zvM8rYZk6u26tUC9jNZPCKaH2Z_Pm5A53DUdcDO9yPueYbBg&options=%7B%22isCloseVisible%22%3Afalse%2C%22isCreateAccountViewActive%22%3Afalse%7D&force_login=false)**
>
> Log into your Squarespace account. Squarespace is the all-in-one solution for anyone looking to create a beautiful website.

[https://community.pleasecreate.com/login](https://community.pleasecreate.com/login)

> **[RubyRogues Parley](http://parley.rubyrogues.com/login)**
>
> A private discussion area for the Ruby Rogues shows, code, and development

I hope this makes it clear.

---

<div class="post-metadata">

### Author: ![P16](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@P16](https://meta.discourse.org/u/P16)
#### Post date: [Août 5, 2016, 3:16 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/8 "2016-08-05T03:16:02Z")

</div>

Can we have a setting where the admin can choose whether to display the login modal or not (for private forums)?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [Août 5, 2016, 5:23 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/9 "2016-08-05T17:23:03Z")

</div>

I want to send emails to people and have a signin link.. can we get `/signin` so that we can get the modal displayed?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Février 20, 2019, 11:53 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/10 "2019-02-20T11:53:01Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Mars 16, 2022, 11:47 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/11 "2022-03-16T11:47:02Z")

</div>



---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [Mars 16, 2022, 11:57 UTC](https://meta.discourse.org/t/login-popup-doesnt-work-for-private-discourse-instance/47610/12 "2022-03-16T11:57:00Z")

</div>


