Try reversing the condition :
if(post_password_required( )):
echo get_the_password_form();
else:
// if password not required or password cookie is present
// your protected content here
endif;
See codex
Hope that helps.
Try reversing the condition :
if(post_password_required( )):
echo get_the_password_form();
else:
// if password not required or password cookie is present
// your protected content here
endif;
See codex
Hope that helps.