Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Hiding OpenID login

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 3086 Views
  • MKayHavoc
    Avatar
    Community Member
    33 Posts

    Hiding OpenID login Link to this post

    Hi,

    How can I hide the OpenID login?

    I also want the E-Mail & Password login hidden so that my users have to login through an external source.

    Any suggestions?

    Cheers

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Hiding OpenID login Link to this post

    You can remove the open id login by deleting the whole open id module - auth_openid folder. You could probably use just CSS otherwise to do { display: hidden;} on the tab you use to click.

  • MKayHavoc
    Avatar
    Community Member
    33 Posts

    Re: Hiding OpenID login Link to this post

    In that case I'm going to need to override tabstrips css. However my css files are being applied in the following order:

    <link rel="stylesheet" type="text/css" href="themes/staff/css/typography.css" />
    <link rel="stylesheet" type="text/css" href="themes/staff/css/form.css" />
    <link rel="stylesheet" type="text/css" href="themes/staff/css/layout.css" />
    <link rel="stylesheet" type="text/css" href="jsparty/tabstrip/tabstrip.css" />
    <link rel="stylesheet" type="text/css" href="sapphire/css/Form.css" />

    How can I make the tabstrip.css and Form.css apply before my typography.css, form.css and layout.css?

    Cheers

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Hiding OpenID login Link to this post

    You can't, well not easily. Best way is just to use bigger CSS Selectors, and/or get a higher inheritance eg if they are styled like .tab or something just do something like #Content .tab so it doesnt matter what order they are included, your rules are of a higher order.

  • MKayHavoc
    Avatar
    Community Member
    33 Posts

    Re: Hiding OpenID login Link to this post

    The actually tabbed effect is being applied through the DOM by the tabstrip.js so I can't override it using CSS?

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Hiding OpenID login Link to this post

    did you want open id support at all? You could just remove that module completely - or edit the auth_openid/_config file and remove the last line? I think that would effectively 'disable' it

  • MKayHavoc
    Avatar
    Community Member
    33 Posts

    Re: Hiding OpenID login Link to this post

    Ive removed the open_id. But I want to hide the basic E-mail Password login, so that my users have to use the External Authentication module and that's there only option.

  • MKayHavoc
    Avatar
    Community Member
    33 Posts

    Re: Hiding OpenID login Link to this post

    In fact how can I just remove all js libraries from my site so:

    <script type="text/javascript" src="jsparty/loader.js"></script>
    <script type="text/javascript" src="jsparty/prototype.js"></script>
    <script type="text/javascript" src="jsparty/behaviour.js"></script>
    <script type="text/javascript" src="jsparty/prototype_improvements.js"></script>
    <script type="text/javascript" src="jsparty/tabstrip/tabstrip.js"></script>
    <script type="text/javascript" src="jsparty/scriptaculous/effects.js"></script>

    I understand that these are used for the CMS backend. But they shouldn't really be included in the live site.

    Equally so, how can I add my own in?

    3086 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.