Posts: 10
Threads: 6
Joined: Jun 2012
Hi,
We have a copy of the files behind our own system admin firewall, and want to know how we can pass admin variables into commentics so we don't need to login twice.
How can we do this please?
Thx.
Posts: 2,895
Threads: 59
Joined: Jun 2010
Hi,
If I understand your question, you want to pass the login credentials from your system firewall into the username and password fields for the Commentics admin panel login form.
So let's say you have the login credentials from your system firewall in session variables such as $_SESSION['system_firewall_username'] and $_SESSION['system_firewall_password'].
What you would do is open /comments/admin/includes/auth.php and add the parts in red:
<input type="text" required autofocus name="username" style="width:150px" value="<?php echo $_SESSION['system_firewall_username']; ?>"/>
<input type="password" required name="password" style="width:150px" value="<?php echo $_SESSION['system_firewall_password']; ?>"/>
Now when you go to the Commentics admin panel the username and password fields will be pre-filled and all you would need to do is click the 'Login' button.
Have
you completed
the interview?