Hi and Ahoy, I am new here - glad to be here :-)
I am trying to show the admin login as the home page or the 'http://localhost/app_name/' URL.
My defaults config looks like this:
define('DEFAULT_MODULE', 'trongate_administrators');
define('DEFAULT_CONTROLLER', 'Trongate_administrators');
define('DEFAULT_METHOD', 'login');
I'm getting a strange result and I am able to click directly into trongate_administrators/manage without the need to login.
What am I doing wrong?
And why can I access the trongate_administrators/manage module without a username and password? (I am using Firefox with a Private window so all cookies and so should be cleared out).
Best regards,
Hugo
The trongate_administrators module as the home page?
2 years ago
2 years ago
#1
2 years ago
#2
Hello,
The reason for this is you are in dev mode.
When in Dev mode you are logged in as admin.
In the main cofig folder, config.php change this line to live.
define('ENV', 'dev');
Dan
The reason for this is you are in dev mode.
When in Dev mode you are logged in as admin.
In the main cofig folder, config.php change this line to live.
define('ENV', 'dev');
Dan
2 years ago
#3
Thank you, Dan
That solves the access issue.
I still have an issue with the view file outputs, on the screen:
It looks like it is an issue with this line:
I guess 'my_admin_id' is not defined, but it works fine if I go directly to the URL: /trongate_administrators/login
So what is the difference between accessing the URL directly and the configuration:
?
That solves the access issue.
I still have an issue with the view file outputs, on the screen:
It looks like it is an issue with this line:
I guess 'my_admin_id' is not defined, but it works fine if I go directly to the URL: /trongate_administrators/login
So what is the difference between accessing the URL directly and the configuration:
?