nghi Posted February 2, 2015 Share Posted February 2, 2015 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 More sharing options...
kongondo Posted February 2, 2015 Share Posted February 2, 2015 (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? Edited February 2, 2015 by kongondo 1 Link to comment Share on other sites More sharing options...
nghi Posted February 2, 2015 Author Share Posted February 2, 2015 Haha you're right. I meant. if($config->debug == false) Thanks, kongondo, I'll use this for now. Link to comment Share on other sites More sharing options...
Jan Romero Posted February 2, 2015 Share Posted February 2, 2015 The same disclaimer applies to me, obviously, but you may also want to hook into execute() in ProcessLogin, or, if you’re using the dev version, create your own alternative ProcessLogin. It’s used as an example on the blog. Link to comment Share on other sites More sharing options...
ukyo Posted February 2, 2015 Share Posted February 2, 2015 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now