General > Support
double login boxes
(1/1)
acherwinski:
On the operator or administrator login screen why are there two login boxes and only one labeled password box? Users might find it simpler with only one, but perhaps I am not understanding the difference between the two.
Thank you,
GREAT TOOL!
Alan
jarradyuhas:
Good point. You can easily remove this in the coding, so that shouldnt be an issue at all. Hopefully devs come back and see this post. They seem to have been MIA for a while.
acherwinski:
It looks like the two logins are meant to serve some purpose, but I can't figure it out? How would I comment out the upper boxes in the code. PHP novice. Thanks.
require_once('../libs/common.php');
require_once('../libs/operator.php');
$errors = array();
$page = array( 'formisRemember' => true, 'version' => $version);
if( isset($_POST['login']) && isset($_POST['password']) ) {
$login = getparam('login');
$password = getparam('password');
$remember = isset($_POST['isRemember']) && $_POST['isRemember'] == "on";
$operator = operator_by_login( $login );
if( $operator && isset($operator['vcpassword']) && $operator['vcpassword'] == md5($password) ) {
$target = isset($_SESSION['backpath'])
? $_SESSION['backpath']
: "$webimroot/operator/index.php";
login_operator($operator,$remember);
header("Location: $target");
exit;
} else {
$errors[] = getlocal("page_login.error");
$page['formlogin'] = $login;
}
}
$page['localeLinks'] = get_locale_links("$webimroot/operator/login.php");
start_html_output();
require('../view/login.php');
?>
Eddybaur:
To remove the login boxes on the top right of the screen, go into view/login.php
then delete
--- Quote ---$page['show_small_login'] = true;
--- End quote ---
Navigation
[0] Message Index
Go to full version