Author Topic: double login boxes  (Read 9382 times)

0 Members and 1 Guest are viewing this topic.

acherwinski

  • Full Member
  • ***
  • Posts: 18
double login boxes
« on: October 06, 2010, 02:59:14 PM »
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

  • Sr. Member
  • ****
  • Posts: 36
    • SusQ-Cyber Charter School
Re: double login boxes
« Reply #1 on: October 06, 2010, 04:18:43 PM »
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

  • Full Member
  • ***
  • Posts: 18
Re: double login boxes
« Reply #2 on: October 08, 2010, 02:18:34 PM »
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

  • Native
  • *****
  • Posts: 237
  • Mibew Member
    • Mibew
Re: double login boxes
« Reply #3 on: October 14, 2010, 12:46:33 AM »
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;