Edit index.php
-
Server
- FOG Version: 1.3 RC22
- OS: Ubunutu 16.04
Client
- Service Version:
- OS:
Description
My network does not allow traffic out from non-ad computers and so I was hoping to remove the FOG statistics from the login page.
As I have to hit escape quickly to cancel before i am redirected to a network login page. I am a novice web coder at best and am having a hard time tracking that bit of code down.
-
Is it causing a problem with logging in? It shows the information if on the internet, and returns an error if it is not. That said it shouldn’t be preventing logging in at all. Is there a particular reason you want to remove it?
-
When the server attempts to get the stats it takes me to the company redirect page to login as the server is not using AD credentials, I can login but then am redirected to a page showing simply FOG stats:
-
@joshuaparker I don’t understand why it’s redirecting you at all. That said look in /var/www/fog/lib/fog/processlogin.class.php
Search for login-info-form
Delete the id=“login-info-form” from there. It should no longer try requesting the information.
-
It’s on our end, but unfortunately I have no control over the behavior. Thanks for the help!
-
@joshuaparker Do you have a NAS or iSCSI working with FOG in any way?
-
@Wayne-Workman No, single server.
-
@joshuaparker Sorry I should have clarifyed, this did solve the issue I was having.
-
@joshuaparker What fixed the issue? The removing the id=‘login-info-form’?
I’ve added a schema change for 1.3.1-RC-2 that is addressed under “General Settings” from the fog settings page. This is just a simple checkbox. It’s default status is “checked” of course, but can be adjusted so you don’t consistently need to make changes during updates.