Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Added "Force" option for login, so that it shows regardless of whethe…
Browse files Browse the repository at this point in the history
…r user is logged in.
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Oct 20, 2010
1 parent 996ae58 commit c3561bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions components/login/controllers/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public function __construct ( ) {

function Display ( $pView = null, $pData = array ( ) ) {

$this->_Current = $this->Talk ( 'User', 'Current' );
$Force = $pData['force'];

if ( ( !$Force ) && ( $this->_Current ) ) return ( true );

$referer = $_SERVER['HTTP_REFERER'];
$host = ASD_DOMAIN;

Expand Down
4 changes: 2 additions & 2 deletions foundations/default/common/403.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
</div>
<div id="appleseed-login-content" class="grid_12 omega">
<section id="login-local">
<?php $zApp->Components->Go ( "login", "login", "login" ); ?>
<?php $zApp->Components->Go ( "login", "login", "login", array ( 'force' => true ) ); ?>
</section>

<section id="login-remote">
<?php $zApp->Components->Go ( "login", "login", "remote" ); ?>
<?php $zApp->Components->Go ( "login", "login", "remote", array ( 'force' => true ) ); ?>
</section>
</div>
</div>
Expand Down

0 comments on commit c3561bb

Please sign in to comment.