Jump to content

Recommended Posts

Posted

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;
}

Posted (edited)

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
Posted

If you want to access to admin page what will happen?

I offer you use an module like Page Protector. Also you can create your custom view file, when you active protector for which page you choose.

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
  • Recently Browsing   0 members

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