User/Register (quick fix, suggestion)

Author Message

Vincent Saulnier

Monday 22 September 2003 8:29:30 am

This is a quick fix for those who go directly to user/login or user/register without passing through the content module.

at line 105 of "/kernel/user/register.php"
change this :

if ( $http->hasSessionVariable( "LastAccessesURI" ) )
{
$module->redirectTo( $http->sessionVariable( "LastAccessesURI" ) );
}

into this :

if ( $http->hasSessionVariable( "LastAccessesURI" ) )
{
$module->redirectTo( $http->sessionVariable( "LastAccessesURI" ) );
}
else
{
$module->redirectTo( '/user/login' );
}

eZ crew,
I think this is how it should work.

--
Vincent

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.