Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Feb 01, 2019 @ 05:30
    Tom
    0

    Disable unlink button for AD login User profile in Umbraco Back-End

    Hi we have implemented AD login for Umbraco 7 and we were wondering if it was possible to hide or disable the unlink account button from end users?

    We were contemplating adding a super simple package to get some javascript to do it but were wondering if there was a better way? enter image description here

  • Dhanesh kumar mj 18 posts 134 karma points
    Oct 01, 2019 @ 04:43
    Dhanesh kumar mj
    0

    Hi Tom,

    In V8 there is a way to hide the Un-Link button by commenting a simple html snippet from the \Umbraco\Views\common\overlays\user\user.html file,I think this will also works in V7.

     <button ng-if="login.linkedProviderKey != undefined"
                    ng-click="unlink($event, login.authType, login.linkedProviderKey)"
                    class="btn btn-block btn-social"
                    ng-class="login.properties.SocialStyle"
                    id="{{login.authType}}"
                    name="provider"
                    value="{{login.authType}}">
                <i class="fa" ng-class="login.properties.SocialIcon"></i>
                <localize key="defaultdialogs_unLinkYour">Un-link your</localize>&nbsp;{{login.caption}}&nbsp;<localize key="defaultdialogs_account">account</localize>
            </button>
    

    In the above code snippet umbraco checks if there is any login.linkedProviderKey ? if yes then show's the above snippet.You just comment the above code.

    Dhanesh

Please Sign in or register to post replies

Write your reply to:

Draft