Copied to clipboard

Flag this post as spam?

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


  • weerapongpruchya 3 posts 33 karma points
    Nov 04, 2020 @ 07:16
    weerapongpruchya
    0

    Custom MVC controllers with a valid login credentials?

    Hi Expert,

    F.e I have two umbraco apps, The root one is Uintra and the virtual directory is uSkinned(Sub-Folder)

    GIVEN: If a user is logged in via Uintra app. WHEN: He/She navigate from Uintra app to uSkinned app THEN: return RedirectToRoute("Dashboard");

    Else return base.Index(model); The default view.

    Possible?

    public class HomeController : Umbraco.Web.Mvc.RenderMvcController { public override ActionResult Index(ContentModel model, string token) { if (IsValidToken(token)) return RedirectToRoute("Dashboard");

            return base.Index(model);
        }
    }
    
  • weerapongpruchya 3 posts 33 karma points
    Nov 04, 2020 @ 10:59
    weerapongpruchya
    0

    Hi All,

    I found the interface by implementing the IContentFinder and return RedirectToRoute("Dashboard");.

Please Sign in or register to post replies

Write your reply to:

Draft