Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Mikael Axel Kleinwort 65 posts 307 karma points c-trib
    5 days ago
    Mikael Axel Kleinwort

    Showing a login view when visitor is not logged in

    In Umbraco 8, during time of development, I want to show a login view instead of the regular page view for all pages of the site if a visitor is not logged in as part of a specific members group.

    This is to allow clients and reviewers to login and browse the entire site, while unauthorized visitors only see the login page which is designed like a "coming soon" page.

    What is the easiest way to accomplish this in Umbraco 8?

    I want to avoid having to alter public access settings on many pages. My take is that there must be a way to plug into the request pipeline and alter the view to be rendered based on login / member group status.

    I am grateful for an example.

Please Sign in or register to post replies

Write your reply to: