Forums / Developer / User/Register (quick fix, suggestion)

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