discourse/discourse — pull request #957 by chrishunt (2013-06-04 23:00:43+00:00)
Title: Add 'login required' site setting

Based on the conversation in #951 and [meta/4580](http://meta.discourse.org/t/can-discourse-be-configured-to-always-require-login/4580)

This PR adds a 'login required' site setting, for those that want to restrict usage of the forum to logged-in users only :lock:

When activated:

- All routes redirect to `/login` when user is not logged in **except for static pages**
- Login page currently displays a generic "Welcome blah blah blah, please sign in". See `login.en.html.erb` in [`ab19d980`](https://github.com/chrishunt/discourse/commit/ab19d9805aa01f8b392d227e853aef6ae83fbe25). I'm open to adding a customization field in admin if people want to customize this blurb (which I can do in a separate PR)