Jump to content

Disable login page


nghi
 Share

Recommended Posts

How do I disable the login page /proceswire entirely, with code. I'm not entirely sure where to write... (Mostly for prod and dev)

I want to do something like this.
 

if($config->debug == true)
{
//kick user from page;
}

Link to comment
Share on other sites

I am assuming you mean admin login page?
 
Disclaimer!: Tested and it works but not sure if this is the right place or way to do it..! You might want to wait for the masters to confirm :-)
 
In your /site/templates/admin.php....

//if config debug == true; redirect elsewhere...(you can also redirect to a PW page url)
if($config->debug) $session->redirect('http://www.google.com');

But how will you login yourself? :D

Edited by kongondo
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...