• Resolved Al_ambique

    (@auberlu)


    Hello!
    First of all, nice job, this plugin is really easy to use and makes security much stronger.

    Since a few weeks, I noticed, thanks to Theme My Login, that people were trying to bruteforce my Admin account.
    I’d like to use Clef only for Administrators.

    How can I do that? If I enable the plugin, it adds the Clef loggin button on my BuddyPress login widget, I’d like it to be shown only on a certain page.

    Of course I could add a display:none css rule for the widget but I’m not really fond of that idea…

    Thanks in advance.

    https://www.ads-software.com/plugins/wpclef/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor inthylight

    (@inthylight)

    Hi auberlu,

    Thanks for the encouragement!

    On your questions:

    1. Yes, you can specify that Clef should apply only to admin-level users via the Clef settings page. See this guide.

    2. If it’s public, can you send the URL where you are seeing this behavior (or email a screenshot to [email protected])?

    Thread Starter Al_ambique

    (@auberlu)

    Hello,
    I found an easy way to use Clef only for Administrators. Maybe it’s not the best but here’s how I achieved it :

    1) Enable Clef login only for admin-level users (like explained before).
    2) Create two separate login pages : 1 for classical users, and another one only for admins.
    On the clasical login page, add the following CSS by editing the page :

    <style type="text/CSS">
    .clef-login-container{
    display: none!important;
    }
    </style>

    This CSS will hide the Clef login button for classical users who don’t use clef, but it will still be shown on the admin login page.

    I precise that I use Theme My Login. Therefore when I want to create a login page I just need to put the shortcode [theme-my-login] on it and the page automatically shows a login form.
    If you use another login system it might not work that way.

    This solution works well on my website since I don’t use a login widget because of spam (captcha is not nice in the sidebar), but it won’t probably fit with other websites.

    The best is still to encourage users to use Clef since it’s pretty easy ??

    Plugin Contributor inthylight

    (@inthylight)

    @auberlu,

    Thanks so much for sharing your solution.

    Have a wonderful Wednesday!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use only for administrators’ is closed to new replies.