• Hello,

    My website does have a registration page, so users have to click on the logout link at some point.
    I am hiding the admin page via secret Login Slug, but I noticed that users can read its value from the URL when they log out. ?do you happen to know how to I hide the Login Slug from logout URL please?
    (hover on Log out text below you will see what I mean)

    !Thank you!

    <li id=”menu-item-1788″ class=”bp-menu bp-logout-nav menu-item menu-item-type-custom menu-item-object-custom menu-item-1788″> Log Out</li >

    • This topic was modified 4 years, 11 months ago by globsticks.
    • This topic was modified 4 years, 11 months ago by globsticks.
Viewing 2 replies - 1 through 2 (of 2 total)
  • If you remove the nonce (what you are calling a secret key), the user will get an error asking them if they really want to log out each time they click on your log out link. That tends to make users panicky.
    It forms a part of the URL for a good reason – to protect the user against clicking on a link on a different page / website that allows for cross site scripting.
    I would strongly suggest not messing with it ??

    Thread Starter globsticks

    (@globsticks)

    Thanks Carike !
    where it says: secretslug is actually the wp-admin slug, so my concern is to actually hide that instead of displayed it there. do you have any ideas how to hide it or should I use a plugin?

    @nikolask1

    what do you think I can do here ?

    • This reply was modified 4 years, 11 months ago by globsticks.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Login Slug value on Logout’ is closed to new replies.