6

Is it possible to password protect a single page in Craft? Wordpress has this functionality built in. I would love to do it in Craft as well.

14

Yes. Use the RequireLogin tag at the top of a page:

{% requireLogin %}

This tag will ensure that the user is logged in. If they aren’t, they will be redirected to the Login page, and returned to the original page after successfully logging in.

(make sure you are logged out before you test this!)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.