# Настройка автоматического входа при запросе приватных страниц неавторизованными пользователями

**URL:** <https://meta.discourse.org/t/auto-login-setting-when-private-pages-are-requested-by-unlogged-users/131142>\
**Category:** Feature\
**Created:** [16.Октябрь.2019 08:40:28 UTC](https://meta.discourse.org/t/auto-login-setting-when-private-pages-are-requested-by-unlogged-users/131142 "2019-10-16T08:40:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [16.Октябрь.2019 18:11:50 UTC](https://meta.discourse.org/t/auto-login-setting-when-private-pages-are-requested-by-unlogged-users/131142/4 "2019-10-16T18:11:50Z")

</div>

Возможно, мы сможем добавить это как опциональную настройку, отключенную по умолчанию; я открыт к такой идее. В других темах здесь обсуждаются плюсы и минусы.

Аналогичная настройка сайта была недавно добавлена @danj:

> <https://github.com/discourse/discourse/pull/8014>
>
> If the setting is turned on, then the user will receive information
> about the s…ubject: if it was deleted or requieres some special access to
> a group (only if the group is public). Otherwise, the user will receive
> a generic #404 error message. For now, this change affects only the
> topics and categories controller.
> 
> This commit also tries to refactor some of the code related to error
> handling. To make error pages more consistent (design-wise), the actual
> error page will be rendered server-side.
> 
> \---
> 
> \### Preview
> 
> \* Topic in a secret category (with public group)
> 
> \<img width="1135" alt="topic in secret category" src="https://user-images.githubusercontent.com/4147664/63161475-d9fd6d00-c028-11e9-8e0a-6c8595d73c32.png"\>
> 
> \* Deleted topic in a public category (with public group)
> 
> \<img width="1135" alt="a deleted topic" src="https://user-images.githubusercontent.com/4147664/63161465-d538b900-c028-11e9-88b9-0587fc763645.png"\>
> 
> \* Deleted topic in a secret category
> 
> \<img width="1135" alt="deleted topic in secret category" src="https://user-images.githubusercontent.com/4147664/63161491-e2ee3e80-c028-11e9-83a8-39bb46494069.png"\>
> 
> \* Topic in a secret category (with private group)
> 
> \<img width="1135" alt="topic in super secret category" src="https://user-images.githubusercontent.com/4147664/63161500-e8e41f80-c028-11e9-8a98-ca3534288849.png"\>
> 
> \* Secret category (with a public group)
> 
> \<img width="1135" alt="category page" src="https://user-images.githubusercontent.com/4147664/63161513-ee416a00-c028-11e9-87ef-45943576dbaa.png"\>

---

_[View the full topic](https://meta.discourse.org/t/auto-login-setting-when-private-pages-are-requested-by-unlogged-users/131142)._
