Post by lockiedownunder » Sun Aug 17, 2025 7:33 am

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.
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 ;D


Active Member

Posts

Joined
Sun Nov 01, 2015 3:00 pm


Post by khnaz35 » Sun Aug 17, 2025 11:30 am

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


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by lockiedownunder » Sun Aug 17, 2025 2:16 pm

khnaz35 wrote:
Sun Aug 17, 2025 11:30 am
Check your modifications because file is being modified.
Your 100% right and don't know why I didn't look there. It was called BD Simple Security.

Thank you

OC 3.0.4.1
PHP 8.2
Keep Smiling ;D


Active Member

Posts

Joined
Sun Nov 01, 2015 3:00 pm


Post by khnaz35 » Sun Aug 17, 2025 8:54 pm

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


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 22 guests