Overriding core shape from module

Topics: Writing modules
Jul 26, 2016 at 12:34 PM

I currently have a module that provides an alternative authentication provider for a website.

I'd like to override the core shape User.cshtml when this module is enabled. Is this possible?

I've tried adding a new version of User.cshtml into the views folder of the module but it has no effect.

On the other hand, I can add the view inside the theme, and that does have an effect, but I only want the view to be overridden if the module is enabled.