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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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