A while ago I found something here to help make admin a little more secure. I now wish to undo it but my memory fails me how I did it.
To get access to sign in to admin used to be
www.webstite.com/admin/
It is now
www.webstite.com/admin/?p=password
You then get the log in screen.
Does anyone know where this code is????
in ocdata/storage/Modification/Admin/controller/login.php I have
$pass = null;
if (!isset($_GET[PASS_KEY]) || $_GET[PASS_KEY] != PASS)
{
$this->response->redirect('http://'.$_SERVER['HTTP_HOST']."/");
}
else
{
$pass = '&'.PASS_KEY.'='.PASS;
}
Deleting these lines work but they must be cached as they keep rebuilding.
To get access to sign in to admin used to be
www.webstite.com/admin/
It is now
www.webstite.com/admin/?p=password
You then get the log in screen.
Does anyone know where this code is????
in ocdata/storage/Modification/Admin/controller/login.php I have
$pass = null;
if (!isset($_GET[PASS_KEY]) || $_GET[PASS_KEY] != PASS)
{
$this->response->redirect('http://'.$_SERVER['HTTP_HOST']."/");
}
else
{
$pass = '&'.PASS_KEY.'='.PASS;
}
Deleting these lines work but they must be cached as they keep rebuilding.
Last edited by lockiedownunder on Sun Aug 17, 2025 2:17 pm, edited 1 time in total.
OC 3.0.4.1
PHP 8.2
Keep Smiling
Check your modifications because file is being modified.
Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy.
Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com
You are most welcome 

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy.
Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com
Who is online
Users browsing this forum: No registered users and 27 guests