{strip}
{if $mams_authorized == 0}
    {if $action == 'redirect'} 
      {if $mams_page == -1}
        {$mod->Lang('pagetype_unauthorized')}
      {else}
        {redirect_page page=$mams_page}
      {/if}
    {elseif $show_what == 'content_en'}
      {if $docaptcha == 1}
        {MAMS form=login}
      {else}
        {MAMS form=login nocaptcha=1}
      {/if}
    {/if}
{else}
   {$output|default:''}
{/if}
{/strip}