Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #194 (new improvement)

Opened 6 years ago

Last modified 6 years ago

Lock Entire Phtagr site

Reported by: vue Owned by:
Priority: minor Milestone: 2.4
Component: unspecified Version:
Keywords: Cc:

Description

I would like to make it so if anyone visits the Phtagr site there automatically presented with a login screen - and no way to guest access.

Essentially locking the entire thing, how can i do that?

Change History

comment:1 Changed 6 years ago by sebastian

Currently there is no direct functionality implemented yet. But you can edit your Controller/AppController?.php and change the function beforeFilter() with given redirect:

  public function beforeFilter() {
    parent::beforeFilter();
    $this->_checkSession();
    if ($this->action != 'login' && $this->getUserId() <= 0) {
      $this->redirect('/users/login');
    }
    ...
Note: See TracTickets for help on using tickets.