My frontend has a sidebar that is embedded by most of my frontend's pages. In that sidebar template, there is a conditional that goes something like this:
{if logged_in}
...
...
{embed="foo/bar"}
...
...
{/if}
{if logged_out}
...
...
...
{/if}
(The ...
indicates plain HTML stuff.)
Everything works as expected -- except on my /sign-up/ page. On the /sign-up/ page, it's as if I am logged in. I see the markup inside the {if logged_in}
conditional and the results of the embed. I do not see the markup inside the {if logged_out}
.
Other parts of the page has similar logged_in and logged_out checks -- and they all seem to be working fine. The problem is isolated to just the sidebar. This is very strange to me. Any ideas what might cause this problem?
UPDATE 1:
Note the {embed="foo/bar"}
. It contains a SafeCracker Registration form. Here's the opening tag:
{exp:channel:form
channel="profiles"
class="form-horizontal apply-nolazy"
datepicker="no"
dynamic_title="[email]"
error_handling="inline"
id="registration-form"
include_assets="no"
include_jquery="no"
loggin_member="no"
register_member="yes"
return="/sign-up/verify-email-address/"
rules:birthdate="required"
rules:gender="required"
rules:profile_name="required|max_length[25]"
rules:user_provided_address="required"
secure_action="yes"
secure_return="yes"
}
When I comment out the embed, the {if logged_in}
and {if logged_out}
checks in the template that embeds the SafeCracker Registration form are respected. It's as if the embedding of the form causes the conditionals to misbehave. Is this somehow a problem with SafeCracker Registration Form?