Copied to clipboard

Flag this post as spam?

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


  • David 11 posts 143 karma points
    Nov 01, 2018 @ 19:25
    David
    1

    Remove form Element From Umbraco Login Screen

    Currently my log on screen looks like this:

    current log in screen

    I want to remove the ability to log in with anything other than our single sign on. How do I remove the form containing the 2 labels, 2 text fields and button to get my log in screen looking like this:

    enter image description here

    Note: I don't want to just simply hide the form element with css, I want to prevent it from even being a part of the markup.

  • Matthew Wise 271 posts 1373 karma points MVP 5x c-trib
    Nov 02, 2018 @ 08:26
    Matthew Wise
    1

    Hi David,

    The only way I cant think of would be to edit

    /umbraco/views/common/dialogs/login.html which is the template for the login view.

    However this would be something you would need to do after every update you apply to Umbraco.

    Matt

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Nov 02, 2018 @ 08:56
    Dave Woestenborghs
    101

    The suggestion of matthew can work but like he said this will be overwritten by each upgrade.

    So for future maintenance it's easier to create an angular interceptor that catches the call to the login view and replace it with your own view.

    I wrote about this in a skrift article : https://skrift.io/articles/archive/changing-backoffice-functionality-without-changing-core-code/

    This way you don't have to change umbraco core files.

    Dave

  • David 11 posts 143 karma points
    Nov 09, 2018 @ 18:09
    David
    0

    This really helped. Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft